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 }
/v1/templates/{template_version}/agents
Creates an Agent or multiple Agents from a template
Parameters
templateVersion: string
Returns
Create Agents From Template
import Letta from '@letta-ai/letta-client';
const client = new Letta({
apiKey: 'My API Key',
});
const agent = await client.templates.agents.create('template_version');
console.log(agent.agent_ids);
{
"agent_ids": [
"string"
],
"deployment_id": "deployment_id",
"group_id": "group_id"
}Returns Examples
{
"agent_ids": [
"string"
],
"deployment_id": "deployment_id",
"group_id": "group_id"
}