Create Deployment
agents.deployments.create(stragent_id, DeploymentCreateParams**kwargs) -> DeploymentCreateResponse
POST/agents/{agent_id}/deployments
Create Deployment
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
)
deployment = client.agents.deployments.create(
agent_id="agent_id",
docker_image="docker_image",
)
print(deployment.id){
"id": "id",
"agent_id": "agent_id",
"docker_image": "docker_image",
"is_production": true,
"status": "Pending",
"acp_url": "acp_url",
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"helm_release_name": "helm_release_name",
"promoted_at": "2019-12-27T18:11:19.117Z",
"registration_metadata": {
"foo": "bar"
},
"sgp_deploy_id": "sgp_deploy_id"
}Returns Examples
{
"id": "id",
"agent_id": "agent_id",
"docker_image": "docker_image",
"is_production": true,
"status": "Pending",
"acp_url": "acp_url",
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"helm_release_name": "helm_release_name",
"promoted_at": "2019-12-27T18:11:19.117Z",
"registration_metadata": {
"foo": "bar"
},
"sgp_deploy_id": "sgp_deploy_id"
}