Skip to content
Discord

Agents

Create Agents From Template
client.templates.agents.create(stringtemplateVersion, AgentCreateParams { agent_name, identity_ids, initial_message_sequence, 3 more } body?, RequestOptionsoptions?): AgentCreateResponse { agent_ids, deployment_id, group_id }
POST/v1/templates/{template_version}/agents
ModelsExpand Collapse
AgentCreateResponse { agent_ids, deployment_id, group_id }

Response containing created agent IDs and associated metadata

agent_ids: Array<string>

Array of created agent IDs

deployment_id: string

The deployment ID for the created agents

group_id: string | null

Optional group ID if agents were created in a group