Agents
An agent is a versioned definition that executes when a routine fires. Agents compose skills within a project. Versioning ensures in-flight sessions keep their agent version.
Create an agent
const { data: agent } = await client.agent.create({ body: { name: "Support triage", slug: "support-triage" },})Link an agent into a project
await client.pod.project.agent.add({ path: { podId, id: projectId }, body: { agentId: agent.id, type: "primary" },})Versioning
Use client.agent.version.* to list, create, get, or archive versions
of an agent. When you link an agent into a project you can pin it to a
specific agentVersionId.