Page cover

The AgentBuilderJob Object

The AgentBuilderJob Object

The AgentBuilderJob object represents a background job that builds an agent. It is automatically created whenever:

  • A new agent is created.

  • The python_version or requirements attributes of an agent are updated.

The resulting build is linked to this object.


AgentBuilderJob Class

pythonCopy codeclass AgentBuilderJob:
    """Represents a job that builds an agent in Agent Orbit."""

    id: str           # Unique identifier for the builder job
    agent_id: str     # ID of the associated agent
    created: str      # Timestamp indicating when the job was created

Example Usage

You can retrieve details of an AgentBuilderJob using its ID:

pythonCopy codefrom agentorbit import AgentBuilderJob

# Retrieve an AgentBuilderJob by its ID
builder_job = AgentBuilderJob.retrieve(id="a1b2c3d4-5678-90ef-ghij-klmnopqrst")

# Access its attributes
print(builder_job.id)        # Output: a1b2c3d4-5678-90ef-ghij-klmnopqrst
print(builder_job.agent_id)  # ID of the associated agent
print(builder_job.created)   # Timestamp of creation

Last updated