Get Agent by ID
import os
from agentex import Agentex
client = Agentex(
api_key=os.environ.get("AGENTEX_SDK_API_KEY"), # This is the default and can be omitted
)
agent = client.agents.retrieve(
"agent_id",
)
print(agent.id){
"id": "id",
"acp_type": "sync",
"created_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"name": "name",
"updated_at": "2019-12-27T18:11:19.117Z",
"agent_input_type": "text",
"production_deployment_id": "production_deployment_id",
"registered_at": "2019-12-27T18:11:19.117Z",
"registration_metadata": {
"foo": "bar"
},
"status": "Ready",
"status_reason": "status_reason"
}Returns Examples
{
"id": "id",
"acp_type": "sync",
"created_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"name": "name",
"updated_at": "2019-12-27T18:11:19.117Z",
"agent_input_type": "text",
"production_deployment_id": "production_deployment_id",
"registered_at": "2019-12-27T18:11:19.117Z",
"registration_metadata": {
"foo": "bar"
},
"status": "Ready",
"status_reason": "status_reason"
}