CreateAgentBody

Request body for creating an Agent.

Definition

TypeScript
interface CreateAgentBody {
  workspaceId: string;
  name: string;
  description?: string | undefined;
  instructions?: string | undefined;
  models?: Array<string> | undefined;
  inputSchemaId?: string | undefined;
  outputSchemaId?: string | undefined;
  toolIds?: Array<string> | undefined;
}

Fields

FieldTypeNotes
workspaceIdstringrequired — Workspace that will own the new agent.
namestringrequired — Agent name
descriptionstring | undefinedoptional — Agent description
instructionsstring | undefinedoptional — System instructions for the initial draft version
modelsArray<string> | undefinedoptional — Model IDs for the initial draft version (e.g. ['anthropic/claude-sonnet-4-6']). See SupportedModelSchema for valid IDs.
inputSchemaIdstring | undefinedoptional — Input schema ID for the initial draft version
outputSchemaIdstring | undefinedoptional — Output schema ID for the initial draft version
toolIdsArray<string> | undefinedoptional — Tool IDs to bind to this agent's LLM call surface. Tools wrap functions (server) or client handlers — see the tool entity.