cognitio-agent-sdk. If you are starting a new project, begin with the quickstart and return here for exact options and return types.
Start with these APIs
See AgentOptions for agent configuration and RunResult for completed high-level runs. Low-level session operations return ResultMessage.
The SDK reference is the interface most applications use. The runtime HTTP API and protocol types under Advanced describe the underlying server for direct integrations; you do not need them to use
Agent.
Exported API
Classes
Interfaces
- AgentClient
- AgentDefinition
- AgentOptions
- AgentSessionOptions
- AgentStream
- AgentStreamOptions
- AppliedSettings
- CheckpointHandle
- CheckpointingConfig
- ClaudePluginSpec
- ClientOptions
- CommandDefinition
- CompactResult
- ControlOptions
- HookEntry
- HookEventPayload
- HookResult
- InlinePluginSpec
- LocalMcpServer
- McpPromptDefinition
- McpResourceDefinition
- ModelUsageSummary
- OutputFormatSpec
- PostCompactHookData
- PreCompactHookData
- PromptTurn
- QueryOptions
- RateLimitEvent
- RemoteMcpServer
- ResultMessage
- RunOptions
- RunResult
- RuntimeConfig
- SdkError
- SdkMcpServer
- SessionContext
- SessionCreateOptions
- SessionListFilter
- SessionNamespace
- SessionResumeOptions
- SessionUsage
- SkillDefinition
- SpawnOptions
- StreamOptions
- TaskNotificationEvent
- TaskProgressEvent
- TaskStartedEvent
- TaskStoppedEvent
- ToolContext
- UsageSummary
Type Aliases
- AgentMessage
- AnthropicModelId
- ApiAuth
- Auth
- AuthContent
- CanUseToolCallback
- CognitioConfig
- CognitioEvent
- CognitioMessage
- CognitioPart
- CognitioSession
- DeepseekModelId
- ExternalMcpServer
- GoogleModelId
- GroqModelId
- HookCallback
- HookData
- HookEventName
- HookRegistration
- KnownModelId
- MistralModelId
- ModelId
- OAuth
- OpenaiModelId
- OutputOf
- PermissionDecision
- PermissionMode
- PermissionRuleset
- PluginSpec
- PromptInput
- PromptPart
- Query
- RewindResult
- RuntimeMcpServer
- SdkErrorKind
- SpawnServerRequest
- SystemPromptSpec
- ThinkingConfig
- TodoItem
- ToolDefinition
- TransportKind
- WellKnownAuth
- XaiModelId