agents — @personaai/sdk
Generated field tables for agents — do not edit
Generated from
sdk/typescript/dist/typedoc.json— do not edit. Regenerate withnode platform/scripts/typedoc-resources.mjs.
agents
Auth: Requires
Authorization: Bearer <keyId>.<secret>(server-side). For per-user calls addx-persona-external-user-id. See .
Agents are AI personas with a system prompt, provider, and tool attachments. Create them with a control-plane client (no externalUserId), then chat with them via a per-user client. Agent is the read shape; CreateAgentInput/UpdateAgentInput are the write shapes.
Example
TypeScript
cURL
Response
Agent
Note: like Skill, this mirrors the real wire shape (_id, raw domain/ownerType fields) — getOne() returns skills/mcps/ knowledgeBases populated as objects, while create()/update()/ list() return them as bare id strings; typed loosely here to reflect that real difference rather than picking one shape and being wrong for the other calls.
Source: types/agent.ts:21
Interface
AgentSocialLinks
Source: types/agent.ts:1
Interface
AgentVisibility
unlisted is reachable by direct link/id but excluded from public discovery listings.
Source: types/agent.ts:9
Kind 2097152
AgentCategory
Source: types/agent.ts:10
Kind 2097152
CreateAgentInput
Source: types/agent.ts:67
Interface
UpdateAgentInput
All fields optional — only what you pass is changed.
Source: types/agent.ts:105
Interface
DiscoverAgentsParams
Source: types/agent.ts:148
Interface
McpConnection
One authType: 'oauth', authMode: 'user' MCP attached to an Agent, and whether the calling identity (the client's asserted external user) has connected it yet. authorizeUrl is only present when connected is false — send the browser there to start the OAuth consent flow.
Source: types/agent.ts:140
Interface