abacusai.agent_version
Module Contents
Classes
A version of an AI agent. |
- class abacusai.agent_version.AgentVersion(client, agentVersion=None, status=None, agentId=None, agentConfig=None, publishingStartedAt=None, publishingCompletedAt=None, pendingDeploymentIds=None, failedDeploymentIds=None, error=None, codeSource={})
Bases:
abacusai.return_class.AbstractApiClass
A version of an AI agent.
- Parameters:
client (ApiClient) – An authenticated API Client instance
agentVersion (str) – The unique identifier of an agent version.
status (str) – The current status of the model.
agentId (str) – A reference to the agent this version belongs to.
agentConfig (dict) – The config options used to create this agent.
publishingStartedAt (str) – The start time and date of the training process in ISO-8601 format.
publishingCompletedAt (str) – The end time and date of the training process in ISO-8601 format.
pendingDeploymentIds (list) – List of deployment IDs where deployment is pending.
failedDeploymentIds (list) – List of failed deployment IDs.
error (str) – Relevant error if the status is FAILED.
codeSource (CodeSource) – If a python model, information on where the source code is located.
- __repr__()
Return repr(self).
- to_dict()
Get a dict representation of the parameters in this class
- Returns:
The dict value representation of the class parameters
- Return type:
- refresh()
Calls describe and refreshes the current object’s fields
- Returns:
The current object
- Return type:
- describe()
Retrieves a full description of the specified agent version.
- Parameters:
agent_version (str) – Unique string identifier of the agent version.
- Returns:
A agent version.
- Return type: