# Cognitio Agent SDK > Build agents with tools, conversations, streaming, and structured output. Built on OpenCode. - [Cognitio Agent SDK](https://cognitio-agent.mintlify.app/index.md): Build agents that use tools, remember conversations, and work inside your application. - [Run your first agent](https://cognitio-agent.mintlify.app/quickstart.md): Create a project, connect a model, and print your first response. - [Installation](https://cognitio-agent.mintlify.app/installation.md): Install Cognitio in a JavaScript or TypeScript application. - [Agents and query](https://cognitio-agent.mintlify.app/concepts/agents.md): Run a task, reuse an agent profile, and choose the right conversation API. - [Models and prompts](https://cognitio-agent.mintlify.app/concepts/models-and-prompts.md): Use Vercel AI SDK providers, choose a gateway or direct connection, and shape the agent's instructions. - [Sessions](https://cognitio-agent.mintlify.app/concepts/sessions.md): Keep conversation history, resume a handle, and branch a conversation. - [Streaming and cancellation](https://cognitio-agent.mintlify.app/concepts/streaming.md): Display an answer as it arrives, observe tool work, and stop a run cleanly. - [Structured output](https://cognitio-agent.mintlify.app/concepts/structured-output.md): Request a schema-shaped result, validate it locally and handle bounded retries. - [Built-in tools](https://cognitio-agent.mintlify.app/concepts/built-in-tools.md): Read files, edit code, run commands, and fetch information with Cognitio's runtime tools. - [Custom tools](https://cognitio-agent.mintlify.app/concepts/tools.md): Give an agent application functions with schemas, validation, and clear permissions. - [Model Context Protocol](https://cognitio-agent.mintlify.app/concepts/mcp.md): Choose a transport and connect application tools or external MCP servers. - [Subagents](https://cognitio-agent.mintlify.app/concepts/subagents.md): Delegate a bounded task to a specialist and observe its lifecycle. - [Skills, commands and plugins](https://cognitio-agent.mintlify.app/concepts/skills-commands-plugins.md): Package reusable instructions, explicit commands and session-local capability bundles. - [Permissions](https://cognitio-agent.mintlify.app/concepts/permissions.md): Control tool availability, authorize operations, and handle approval requests. - [Hooks](https://cognitio-agent.mintlify.app/concepts/hooks.md): Observe tool calls and customize selected lifecycle decisions with local callbacks. - [Checkpoints and rewind](https://cognitio-agent.mintlify.app/concepts/checkpoints.md): Save eligible workspace files and restore them without rewinding the conversation. - [Context compaction](https://cognitio-agent.mintlify.app/concepts/compaction.md): Summarize a long conversation and preserve the details your application needs. - [Cost, usage and telemetry](https://cognitio-agent.mintlify.app/concepts/observability.md): Inspect per-run results, understand accounting limits and connect an OTLP collector. - [Examples](https://cognitio-agent.mintlify.app/cookbook/examples.md): Build a chat app, extract data, call a tool, or continue a conversation. - [Build a small chat CLI](https://cognitio-agent.mintlify.app/cookbook/chat-cli.md): Run a complete text-only agent with Node.js and the published npm package. - [Extract structured data](https://cognitio-agent.mintlify.app/cookbook/structured-extraction.md): Extract a contact into JSON and validate it with Zod. - [Give an agent a calculator](https://cognitio-agent.mintlify.app/cookbook/custom-tool.md): Define an application tool, allow it, and confirm it actually ran. - [Continue a conversation](https://cognitio-agent.mintlify.app/cookbook/session-memory.md): Close a local session handle and resume the same conversation. - [Lifecycle and failure handling](https://cognitio-agent.mintlify.app/cookbook/lifecycle.md): Close the resources your application owns and distinguish failed results from rejected operations. - [Runtime defaults](https://cognitio-agent.mintlify.app/defaults-and-isolation.md): Know what happens automatically, and which settings you may want to change. - [Remote runtimes](https://cognitio-agent.mintlify.app/cookbook/remote.md): Connect an application to an existing runtime and keep ownership explicit. - [Changelog](https://cognitio-agent.mintlify.app/changelog.md): Public SDK releases and documentation updates. - [Troubleshooting](https://cognitio-agent.mintlify.app/troubleshooting.md): Find the cause of installation, credentials, tools, streaming, and session problems. - [Get help](https://cognitio-agent.mintlify.app/support.md): Ask a question, report a bug, or share a minimal reproduction. - [From Claude Agent SDK](https://cognitio-agent.mintlify.app/migration/claude-agent-sdk.md): Move an integration to Cognitio's agents, sessions, tools and permissions. - [Migrating to v2](https://cognitio-agent.mintlify.app/migration/v2.md): Update package installation, configuration and session ownership for Cognitio 2.0.0. - [SDK reference](https://cognitio-agent.mintlify.app/api-reference/index.md): Generated from the public TypeScript API. - [Class: Agent](https://cognitio-agent.mintlify.app/api-reference/classes/Agent.md): Generated from the public TypeScript API. - [Class: Session](https://cognitio-agent.mintlify.app/api-reference/classes/Session.md): Generated from the public TypeScript API. - [Function: claudeCompat()](https://cognitio-agent.mintlify.app/api-reference/functions/claudeCompat.md): Generated from the public TypeScript API. - [Function: createAgentClient()](https://cognitio-agent.mintlify.app/api-reference/functions/createAgentClient.md): Generated from the public TypeScript API. - [Function: createSdkMcpServer()](https://cognitio-agent.mintlify.app/api-reference/functions/createSdkMcpServer.md): Generated from the public TypeScript API. - [Function: defineAgent()](https://cognitio-agent.mintlify.app/api-reference/functions/defineAgent.md): Generated from the public TypeScript API. - [Function: defineCommand()](https://cognitio-agent.mintlify.app/api-reference/functions/defineCommand.md): Generated from the public TypeScript API. - [Function: defineHook()](https://cognitio-agent.mintlify.app/api-reference/functions/defineHook.md): Generated from the public TypeScript API. - [Function: defineOutputFormat()](https://cognitio-agent.mintlify.app/api-reference/functions/defineOutputFormat.md): Generated from the public TypeScript API. - [Function: definePlugin()](https://cognitio-agent.mintlify.app/api-reference/functions/definePlugin.md): Generated from the public TypeScript API. - [Function: defineSkill()](https://cognitio-agent.mintlify.app/api-reference/functions/defineSkill.md): Generated from the public TypeScript API. - [Function: defineTool()](https://cognitio-agent.mintlify.app/api-reference/functions/defineTool.md): Generated from the public TypeScript API. - [Function: isSdkError()](https://cognitio-agent.mintlify.app/api-reference/functions/isSdkError.md): Generated from the public TypeScript API. - [Function: query()](https://cognitio-agent.mintlify.app/api-reference/functions/query.md): Generated from the public TypeScript API. - [Function: shutdown()](https://cognitio-agent.mintlify.app/api-reference/functions/shutdown.md): Generated from the public TypeScript API. - [Interface: AgentClient](https://cognitio-agent.mintlify.app/api-reference/interfaces/AgentClient.md): Generated from the public TypeScript API. - [Interface: AgentDefinition](https://cognitio-agent.mintlify.app/api-reference/interfaces/AgentDefinition.md): Generated from the public TypeScript API. - [Interface: AgentOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/AgentOptions.md): Generated from the public TypeScript API. - [Interface: AgentSessionOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/AgentSessionOptions.md): Generated from the public TypeScript API. - [Interface: AgentStream](https://cognitio-agent.mintlify.app/api-reference/interfaces/AgentStream.md): Generated from the public TypeScript API. - [Interface: AgentStreamOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/AgentStreamOptions.md): Generated from the public TypeScript API. - [Interface: AppliedSettings](https://cognitio-agent.mintlify.app/api-reference/interfaces/AppliedSettings.md): Generated from the public TypeScript API. - [Interface: CheckpointHandle](https://cognitio-agent.mintlify.app/api-reference/interfaces/CheckpointHandle.md): Generated from the public TypeScript API. - [Interface: CheckpointingConfig](https://cognitio-agent.mintlify.app/api-reference/interfaces/CheckpointingConfig.md): Generated from the public TypeScript API. - [Interface: ClaudePluginSpec](https://cognitio-agent.mintlify.app/api-reference/interfaces/ClaudePluginSpec.md): Generated from the public TypeScript API. - [Interface: ClientOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/ClientOptions.md): Generated from the public TypeScript API. - [Interface: CommandDefinition](https://cognitio-agent.mintlify.app/api-reference/interfaces/CommandDefinition.md): Generated from the public TypeScript API. - [Interface: CompactResult](https://cognitio-agent.mintlify.app/api-reference/interfaces/CompactResult.md): Generated from the public TypeScript API. - [Interface: ControlOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/ControlOptions.md): Generated from the public TypeScript API. - [Interface: HookEntry](https://cognitio-agent.mintlify.app/api-reference/interfaces/HookEntry.md): Generated from the public TypeScript API. - [Interface: HookEventPayload](https://cognitio-agent.mintlify.app/api-reference/interfaces/HookEventPayload.md): Generated from the public TypeScript API. - [Interface: HookResult](https://cognitio-agent.mintlify.app/api-reference/interfaces/HookResult.md): Generated from the public TypeScript API. - [Interface: InlinePluginSpec](https://cognitio-agent.mintlify.app/api-reference/interfaces/InlinePluginSpec.md): Generated from the public TypeScript API. - [Interface: LocalMcpServer](https://cognitio-agent.mintlify.app/api-reference/interfaces/LocalMcpServer.md): Generated from the public TypeScript API. - [Interface: McpPromptDefinition](https://cognitio-agent.mintlify.app/api-reference/interfaces/McpPromptDefinition.md): Generated from the public TypeScript API. - [Interface: McpResourceDefinition](https://cognitio-agent.mintlify.app/api-reference/interfaces/McpResourceDefinition.md): Generated from the public TypeScript API. - [Interface: ModelUsageSummary](https://cognitio-agent.mintlify.app/api-reference/interfaces/ModelUsageSummary.md): Generated from the public TypeScript API. - [Interface: OutputFormatSpec](https://cognitio-agent.mintlify.app/api-reference/interfaces/OutputFormatSpec.md): Generated from the public TypeScript API. - [Interface: PostCompactHookData](https://cognitio-agent.mintlify.app/api-reference/interfaces/PostCompactHookData.md): Generated from the public TypeScript API. - [Interface: PreCompactHookData](https://cognitio-agent.mintlify.app/api-reference/interfaces/PreCompactHookData.md): Generated from the public TypeScript API. - [Interface: PromptTurn](https://cognitio-agent.mintlify.app/api-reference/interfaces/PromptTurn.md): Generated from the public TypeScript API. - [Interface: QueryOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/QueryOptions.md): Generated from the public TypeScript API. - [Interface: RateLimitEvent](https://cognitio-agent.mintlify.app/api-reference/interfaces/RateLimitEvent.md): Generated from the public TypeScript API. - [Interface: RemoteMcpServer](https://cognitio-agent.mintlify.app/api-reference/interfaces/RemoteMcpServer.md): Generated from the public TypeScript API. - [Interface: ResultMessage](https://cognitio-agent.mintlify.app/api-reference/interfaces/ResultMessage.md): Generated from the public TypeScript API. - [Interface: RunOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/RunOptions.md): Generated from the public TypeScript API. - [Interface: RunResult](https://cognitio-agent.mintlify.app/api-reference/interfaces/RunResult.md): Generated from the public TypeScript API. - [Interface: RuntimeConfig](https://cognitio-agent.mintlify.app/api-reference/interfaces/RuntimeConfig.md): Generated from the public TypeScript API. - [Interface: SdkError](https://cognitio-agent.mintlify.app/api-reference/interfaces/SdkError.md): Generated from the public TypeScript API. - [Interface: SdkMcpServer](https://cognitio-agent.mintlify.app/api-reference/interfaces/SdkMcpServer.md): Generated from the public TypeScript API. - [Interface: SessionContext](https://cognitio-agent.mintlify.app/api-reference/interfaces/SessionContext.md): Generated from the public TypeScript API. - [Interface: SessionCreateOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/SessionCreateOptions.md): Generated from the public TypeScript API. - [Interface: SessionListFilter](https://cognitio-agent.mintlify.app/api-reference/interfaces/SessionListFilter.md): Generated from the public TypeScript API. - [Interface: SessionNamespace](https://cognitio-agent.mintlify.app/api-reference/interfaces/SessionNamespace.md): Generated from the public TypeScript API. - [Interface: SessionResumeOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/SessionResumeOptions.md): Generated from the public TypeScript API. - [Interface: SessionUsage](https://cognitio-agent.mintlify.app/api-reference/interfaces/SessionUsage.md): Generated from the public TypeScript API. - [Interface: SkillDefinition](https://cognitio-agent.mintlify.app/api-reference/interfaces/SkillDefinition.md): Generated from the public TypeScript API. - [Interface: SpawnOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/SpawnOptions.md): Generated from the public TypeScript API. - [Interface: StreamOptions](https://cognitio-agent.mintlify.app/api-reference/interfaces/StreamOptions.md): Generated from the public TypeScript API. - [Interface: TaskNotificationEvent](https://cognitio-agent.mintlify.app/api-reference/interfaces/TaskNotificationEvent.md): Generated from the public TypeScript API. - [Interface: TaskProgressEvent](https://cognitio-agent.mintlify.app/api-reference/interfaces/TaskProgressEvent.md): Generated from the public TypeScript API. - [Interface: TaskStartedEvent](https://cognitio-agent.mintlify.app/api-reference/interfaces/TaskStartedEvent.md): Generated from the public TypeScript API. - [Interface: TaskStoppedEvent](https://cognitio-agent.mintlify.app/api-reference/interfaces/TaskStoppedEvent.md): Generated from the public TypeScript API. - [Interface: ToolContext](https://cognitio-agent.mintlify.app/api-reference/interfaces/ToolContext.md): Generated from the public TypeScript API. - [Interface: UsageSummary](https://cognitio-agent.mintlify.app/api-reference/interfaces/UsageSummary.md): Generated from the public TypeScript API. - [Type Alias: AgentMessage](https://cognitio-agent.mintlify.app/api-reference/type-aliases/AgentMessage.md): Generated from the public TypeScript API. - [Type Alias: AnthropicModelId](https://cognitio-agent.mintlify.app/api-reference/type-aliases/AnthropicModelId.md): Generated from the public TypeScript API. - [Type Alias: ApiAuth](https://cognitio-agent.mintlify.app/api-reference/type-aliases/ApiAuth.md): Generated from the public TypeScript API. - [Type Alias: Auth](https://cognitio-agent.mintlify.app/api-reference/type-aliases/Auth.md): Generated from the public TypeScript API. - [Type Alias: AuthContent](https://cognitio-agent.mintlify.app/api-reference/type-aliases/AuthContent.md): Generated from the public TypeScript API. - [Type Alias: CanUseToolCallback](https://cognitio-agent.mintlify.app/api-reference/type-aliases/CanUseToolCallback.md): Generated from the public TypeScript API. - [Type Alias: CognitioConfig](https://cognitio-agent.mintlify.app/api-reference/type-aliases/CognitioConfig.md): Generated from the public TypeScript API. - [Type Alias: CognitioEvent](https://cognitio-agent.mintlify.app/api-reference/type-aliases/CognitioEvent.md): Generated from the public TypeScript API. - [Type Alias: CognitioMessage](https://cognitio-agent.mintlify.app/api-reference/type-aliases/CognitioMessage.md): Generated from the public TypeScript API. - [Type Alias: CognitioPart](https://cognitio-agent.mintlify.app/api-reference/type-aliases/CognitioPart.md): Generated from the public TypeScript API. - [Type Alias: CognitioSession](https://cognitio-agent.mintlify.app/api-reference/type-aliases/CognitioSession.md): Generated from the public TypeScript API. - [Type Alias: DeepseekModelId](https://cognitio-agent.mintlify.app/api-reference/type-aliases/DeepseekModelId.md): Generated from the public TypeScript API. - [Type Alias: ExternalMcpServer](https://cognitio-agent.mintlify.app/api-reference/type-aliases/ExternalMcpServer.md): Generated from the public TypeScript API. - [Type Alias: GoogleModelId](https://cognitio-agent.mintlify.app/api-reference/type-aliases/GoogleModelId.md): Generated from the public TypeScript API. - [Type Alias: GroqModelId](https://cognitio-agent.mintlify.app/api-reference/type-aliases/GroqModelId.md): Generated from the public TypeScript API. - [Type Alias: HookCallback](https://cognitio-agent.mintlify.app/api-reference/type-aliases/HookCallback.md): Generated from the public TypeScript API. - [Type Alias: HookData](https://cognitio-agent.mintlify.app/api-reference/type-aliases/HookData.md): Generated from the public TypeScript API. - [Type Alias: HookEventName](https://cognitio-agent.mintlify.app/api-reference/type-aliases/HookEventName.md): Generated from the public TypeScript API. - [Type Alias: HookRegistration](https://cognitio-agent.mintlify.app/api-reference/type-aliases/HookRegistration.md): Generated from the public TypeScript API. - [Type Alias: KnownModelId](https://cognitio-agent.mintlify.app/api-reference/type-aliases/KnownModelId.md): Generated from the public TypeScript API. - [Type Alias: MistralModelId](https://cognitio-agent.mintlify.app/api-reference/type-aliases/MistralModelId.md): Generated from the public TypeScript API. - [Type Alias: ModelId](https://cognitio-agent.mintlify.app/api-reference/type-aliases/ModelId.md): Generated from the public TypeScript API. - [Type Alias: OAuth](https://cognitio-agent.mintlify.app/api-reference/type-aliases/OAuth.md): Generated from the public TypeScript API. - [Type Alias: OpenaiModelId](https://cognitio-agent.mintlify.app/api-reference/type-aliases/OpenaiModelId.md): Generated from the public TypeScript API. - [Type Alias: OutputOf](https://cognitio-agent.mintlify.app/api-reference/type-aliases/OutputOf.md): Generated from the public TypeScript API. - [Type Alias: PermissionDecision](https://cognitio-agent.mintlify.app/api-reference/type-aliases/PermissionDecision.md): Generated from the public TypeScript API. - [Type Alias: PermissionMode](https://cognitio-agent.mintlify.app/api-reference/type-aliases/PermissionMode.md): Generated from the public TypeScript API. - [Type Alias: PermissionRuleset](https://cognitio-agent.mintlify.app/api-reference/type-aliases/PermissionRuleset.md): Generated from the public TypeScript API. - [Type Alias: PluginSpec](https://cognitio-agent.mintlify.app/api-reference/type-aliases/PluginSpec.md): Generated from the public TypeScript API. - [Type Alias: PromptInput](https://cognitio-agent.mintlify.app/api-reference/type-aliases/PromptInput.md): Generated from the public TypeScript API. - [Type Alias: PromptPart](https://cognitio-agent.mintlify.app/api-reference/type-aliases/PromptPart.md): Generated from the public TypeScript API. - [Type Alias: Query](https://cognitio-agent.mintlify.app/api-reference/type-aliases/Query.md): Generated from the public TypeScript API. - [Type Alias: RewindResult](https://cognitio-agent.mintlify.app/api-reference/type-aliases/RewindResult.md): Generated from the public TypeScript API. - [Type Alias: RuntimeMcpServer](https://cognitio-agent.mintlify.app/api-reference/type-aliases/RuntimeMcpServer.md): Generated from the public TypeScript API. - [Type Alias: SdkErrorKind](https://cognitio-agent.mintlify.app/api-reference/type-aliases/SdkErrorKind.md): Generated from the public TypeScript API. - [Type Alias: SpawnServerRequest](https://cognitio-agent.mintlify.app/api-reference/type-aliases/SpawnServerRequest.md): Generated from the public TypeScript API. - [Type Alias: SystemPromptSpec](https://cognitio-agent.mintlify.app/api-reference/type-aliases/SystemPromptSpec.md): Generated from the public TypeScript API. - [Type Alias: ThinkingConfig](https://cognitio-agent.mintlify.app/api-reference/type-aliases/ThinkingConfig.md): Generated from the public TypeScript API. - [Type Alias: TodoItem](https://cognitio-agent.mintlify.app/api-reference/type-aliases/TodoItem.md): Generated from the public TypeScript API. - [Type Alias: ToolDefinition](https://cognitio-agent.mintlify.app/api-reference/type-aliases/ToolDefinition.md): Generated from the public TypeScript API. - [Type Alias: TransportKind](https://cognitio-agent.mintlify.app/api-reference/type-aliases/TransportKind.md): Generated from the public TypeScript API. - [Type Alias: WellKnownAuth](https://cognitio-agent.mintlify.app/api-reference/type-aliases/WellKnownAuth.md): Generated from the public TypeScript API. - [Type Alias: XaiModelId](https://cognitio-agent.mintlify.app/api-reference/type-aliases/XaiModelId.md): Generated from the public TypeScript API. - [Variable: NEUTRAL_BASE_PROMPT](https://cognitio-agent.mintlify.app/api-reference/variables/NEUTRAL_BASE_PROMPT.md): Generated from the public TypeScript API. - [Variable: PermissionDecision](https://cognitio-agent.mintlify.app/api-reference/variables/PermissionDecision.md): Generated from the public TypeScript API. - [Variable: models](https://cognitio-agent.mintlify.app/api-reference/variables/models.md): Generated from the public TypeScript API. - [PermissionDecision](https://cognitio-agent.mintlify.app/api-reference/supporting/PermissionDecision.md): Exact type definition referenced by the public SDK. - [SdkMcpHost](https://cognitio-agent.mintlify.app/api-reference/supporting/SdkMcpHost.md): Exact type definition referenced by the public SDK. - [ToolContext](https://cognitio-agent.mintlify.app/api-reference/supporting/ToolContext.md): Exact type definition referenced by the public SDK. - [ToolDefinitionBase](https://cognitio-agent.mintlify.app/api-reference/supporting/ToolDefinitionBase.md): Exact type definition referenced by the public SDK. - [HTTP API overview](https://cognitio-agent.mintlify.app/http-api/overview.md): Advanced: inspect the runtime protocol when building a custom client or deployment integration. - [Events and control requests](https://cognitio-agent.mintlify.app/http-api/events-and-control.md): Advanced: understand raw SSE envelopes, callback responses and ownership. - [Get health](https://cognitio-agent.mintlify.app/api-reference/get-health.md): Get health information about the Cognitio server. - [Get global events](https://cognitio-agent.mintlify.app/api-reference/get-global-events.md): Subscribe to global events from the Cognitio system using server-sent events. - [Get global configuration](https://cognitio-agent.mintlify.app/api-reference/get-global-configuration.md): Retrieve the current global Cognitio configuration settings and preferences. - [Update global configuration](https://cognitio-agent.mintlify.app/api-reference/update-global-configuration.md): Update global Cognitio configuration settings and preferences. - [Dispose instance](https://cognitio-agent.mintlify.app/api-reference/dispose-instance.md): Clean up and dispose all Cognitio instances, releasing all resources. - [Upgrade cognitio](https://cognitio-agent.mintlify.app/api-reference/upgrade-cognitio.md): Upgrade cognitio to the specified version or latest if not specified. - [Set auth credentials](https://cognitio-agent.mintlify.app/api-reference/set-auth-credentials.md): Set authentication credentials - [Remove auth credentials](https://cognitio-agent.mintlify.app/api-reference/remove-auth-credentials.md): Remove authentication credentials - [Write log](https://cognitio-agent.mintlify.app/api-reference/write-log.md): Write a log entry to the server logs with specified level and metadata. - [List workspace adaptors](https://cognitio-agent.mintlify.app/api-reference/list-workspace-adaptors.md): List all available workspace adaptors for the current project. - [List workspaces](https://cognitio-agent.mintlify.app/api-reference/list-workspaces.md): List all workspaces. - [Create workspace](https://cognitio-agent.mintlify.app/api-reference/create-workspace.md): Create a workspace for the current project. - [Workspace status](https://cognitio-agent.mintlify.app/api-reference/workspace-status.md): Get connection status for workspaces in the current project. - [Remove workspace](https://cognitio-agent.mintlify.app/api-reference/remove-workspace.md): Remove an existing workspace. - [Restore session into workspace](https://cognitio-agent.mintlify.app/api-reference/restore-session-into-workspace.md): Replay a session's sync events into the target workspace in batches. - [List all projects](https://cognitio-agent.mintlify.app/api-reference/list-all-projects.md): Get a list of projects that have been opened with Cognitio. - [Get current project](https://cognitio-agent.mintlify.app/api-reference/get-current-project.md): Retrieve the currently active project that Cognitio is working with. - [Initialize git repository](https://cognitio-agent.mintlify.app/api-reference/initialize-git-repository.md): Create a git repository for the current project and return the refreshed project info. - [Update project](https://cognitio-agent.mintlify.app/api-reference/update-project.md): Update project properties such as name, icon, and commands. - [List PTY sessions](https://cognitio-agent.mintlify.app/api-reference/list-pty-sessions.md): Get a list of all active pseudo-terminal (PTY) sessions managed by Cognitio. - [Create PTY session](https://cognitio-agent.mintlify.app/api-reference/create-pty-session.md): Create a new pseudo-terminal (PTY) session for running shell commands and processes. - [Get PTY session](https://cognitio-agent.mintlify.app/api-reference/get-pty-session.md): Retrieve detailed information about a specific pseudo-terminal (PTY) session. - [Update PTY session](https://cognitio-agent.mintlify.app/api-reference/update-pty-session.md): Update properties of an existing pseudo-terminal (PTY) session. - [Remove PTY session](https://cognitio-agent.mintlify.app/api-reference/remove-pty-session.md): Remove and terminate a specific pseudo-terminal (PTY) session. - [Connect to PTY session](https://cognitio-agent.mintlify.app/api-reference/connect-to-pty-session.md): Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time. - [Get configuration](https://cognitio-agent.mintlify.app/api-reference/get-configuration.md): Retrieve the current Cognitio configuration settings and preferences. - [Update configuration](https://cognitio-agent.mintlify.app/api-reference/update-configuration.md): Update Cognitio configuration settings and preferences. - [List config providers](https://cognitio-agent.mintlify.app/api-reference/list-config-providers.md): Get a list of all configured AI providers and their default models. - [Get active Console provider metadata](https://cognitio-agent.mintlify.app/api-reference/get-active-console-provider-metadata.md): Get the active Console org name and the set of provider IDs managed by that Console org. - [List switchable Console orgs](https://cognitio-agent.mintlify.app/api-reference/list-switchable-console-orgs.md): Get the available Console orgs across logged-in accounts, including the current active org. - [Switch active Console org](https://cognitio-agent.mintlify.app/api-reference/switch-active-console-org.md): Persist a new active Console account/org selection for the current local Cognitio state. - [List tool IDs](https://cognitio-agent.mintlify.app/api-reference/list-tool-ids.md): Get a list of all available tool IDs, including both built-in tools and dynamically registered tools. - [List tools](https://cognitio-agent.mintlify.app/api-reference/list-tools.md): Get a list of available tools with their JSON schema parameters for a specific provider and model combination. - [List worktrees](https://cognitio-agent.mintlify.app/api-reference/list-worktrees.md): List all sandbox worktrees for the current project. - [Create worktree](https://cognitio-agent.mintlify.app/api-reference/create-worktree.md): Create a new git worktree for the current project and run any configured startup scripts. - [Remove worktree](https://cognitio-agent.mintlify.app/api-reference/remove-worktree.md): Remove a git worktree and delete its branch. - [Reset worktree](https://cognitio-agent.mintlify.app/api-reference/reset-worktree.md): Reset a worktree branch to the primary default branch. - [List sessions](https://cognitio-agent.mintlify.app/api-reference/list-sessions.md): Get a list of all Cognitio sessions across projects, sorted by most recently updated. Archived sessions are excluded by default. - [Get MCP resources](https://cognitio-agent.mintlify.app/api-reference/get-mcp-resources.md): Get all available MCP resources from connected servers. Optionally filter by name. - [List sessions](https://cognitio-agent.mintlify.app/api-reference/list-sessions-1.md): Get a list of all Cognitio sessions, sorted by most recently updated. - [Create session](https://cognitio-agent.mintlify.app/api-reference/create-session.md): Create a new Cognitio session for interacting with AI assistants and managing conversations. - [Get session status](https://cognitio-agent.mintlify.app/api-reference/get-session-status.md): Retrieve the current status of all sessions, including active, idle, and completed states. - [Delete session](https://cognitio-agent.mintlify.app/api-reference/delete-session.md): Delete a session and permanently remove all associated data, including messages and history. - [Update session](https://cognitio-agent.mintlify.app/api-reference/update-session.md): Update properties of an existing session, such as title or other metadata. - [Get session todos](https://cognitio-agent.mintlify.app/api-reference/get-session-todos.md): Retrieve the todo list associated with a specific session, showing tasks and action items. - [Initialize session](https://cognitio-agent.mintlify.app/api-reference/initialize-session.md): Analyze the current application and create an AGENTS.md file with project-specific agent configurations. - [Fork session](https://cognitio-agent.mintlify.app/api-reference/fork-session.md): Create a new session by forking an existing session at a specific message point. - [Abort session](https://cognitio-agent.mintlify.app/api-reference/abort-session.md): Abort an active session and stop any ongoing AI processing or command execution. - [Share session](https://cognitio-agent.mintlify.app/api-reference/share-session.md): Create a shareable link for a session, allowing others to view the conversation. - [Unshare session](https://cognitio-agent.mintlify.app/api-reference/unshare-session.md): Remove the shareable link for a session, making it private again. - [Get message diff](https://cognitio-agent.mintlify.app/api-reference/get-message-diff.md): Get the file changes (diff) that resulted from a specific user message in the session. - [Summarize session](https://cognitio-agent.mintlify.app/api-reference/summarize-session.md): Generate a concise summary of the session using AI compaction to preserve key information. - [Get session messages](https://cognitio-agent.mintlify.app/api-reference/get-session-messages.md): Retrieve all messages in a session, including user prompts and AI responses. - [Send message](https://cognitio-agent.mintlify.app/api-reference/send-message.md): Create and send a new message to a session, streaming the AI response. - [Get message](https://cognitio-agent.mintlify.app/api-reference/get-message.md): Retrieve a specific message from a session by its message ID. - [Delete message](https://cognitio-agent.mintlify.app/api-reference/delete-message.md): Permanently delete a specific message (and all of its parts) from a session. This does not revert any file changes that may have been made while processing the message. - [Delete session message part](https://cognitio-agent.mintlify.app/api-reference/delete-session-message-part.md): Delete a part from a message - [Patch session message part](https://cognitio-agent.mintlify.app/api-reference/patch-session-message-part.md): Update a part in a message - [Send async message](https://cognitio-agent.mintlify.app/api-reference/send-async-message.md): Create and send a new message to a session asynchronously, starting the session if needed and returning immediately. - [List session commands](https://cognitio-agent.mintlify.app/api-reference/list-session-commands.md): Get commands available to a session, including session-scoped runtime commands and plugins. - [Send command](https://cognitio-agent.mintlify.app/api-reference/send-command.md): Send a new command to a session for execution by the AI assistant. - [List session skills](https://cognitio-agent.mintlify.app/api-reference/list-session-skills.md): Get skills available to a session, including session-scoped runtime skills and plugins. - [Run shell command](https://cognitio-agent.mintlify.app/api-reference/run-shell-command.md): Execute a shell command within the session context and return the AI's response. - [Revert message](https://cognitio-agent.mintlify.app/api-reference/revert-message.md): Revert a specific message in a session, undoing its effects and restoring the previous state. - [Restore reverted messages](https://cognitio-agent.mintlify.app/api-reference/restore-reverted-messages.md): Restore all previously reverted messages in a session. - [Respond to permission](https://cognitio-agent.mintlify.app/api-reference/respond-to-permission.md): Approve or deny a permission request from the AI assistant. - [Create session checkpoint](https://cognitio-agent.mintlify.app/api-reference/create-session-checkpoint.md): Create a durable file checkpoint for a session. - [List session checkpoints](https://cognitio-agent.mintlify.app/api-reference/list-session-checkpoints.md): List durable file checkpoints for a session in chronological order. - [Rewind session files](https://cognitio-agent.mintlify.app/api-reference/rewind-session-files.md): Rewind the working tree files to a durable session checkpoint. - [Respond to permission request](https://cognitio-agent.mintlify.app/api-reference/respond-to-permission-request.md): Approve or deny a permission request from the AI assistant. - [List pending permissions](https://cognitio-agent.mintlify.app/api-reference/list-pending-permissions.md): Get all pending permission requests across all sessions. - [List pending questions](https://cognitio-agent.mintlify.app/api-reference/list-pending-questions.md): Get all pending question requests across all sessions. - [Reply to question request](https://cognitio-agent.mintlify.app/api-reference/reply-to-question-request.md): Provide answers to a question request from the AI assistant. - [Reject question request](https://cognitio-agent.mintlify.app/api-reference/reject-question-request.md): Reject a question request from the AI assistant. - [List providers](https://cognitio-agent.mintlify.app/api-reference/list-providers.md): Get a list of all available AI providers, including both available and connected ones. - [Get provider auth methods](https://cognitio-agent.mintlify.app/api-reference/get-provider-auth-methods.md): Retrieve available authentication methods for all AI providers. - [OAuth authorize](https://cognitio-agent.mintlify.app/api-reference/oauth-authorize.md): Initiate OAuth authorization for a specific AI provider to get an authorization URL. - [OAuth callback](https://cognitio-agent.mintlify.app/api-reference/oauth-callback.md): Handle the OAuth callback from a provider after user authorization. - [Start workspace sync](https://cognitio-agent.mintlify.app/api-reference/start-workspace-sync.md): Start sync loops for workspaces in the current project that have active sessions. - [Replay sync events](https://cognitio-agent.mintlify.app/api-reference/replay-sync-events.md): Validate and replay a complete sync event history. - [List sync events](https://cognitio-agent.mintlify.app/api-reference/list-sync-events.md): List sync events for all aggregates. Keys are aggregate IDs the client already knows about, values are the last known sequence ID. Events with seq > value are returned for those aggregates. Aggregates not listed in the input get their full history. - [Find text](https://cognitio-agent.mintlify.app/api-reference/find-text.md): Search for text patterns across files in the project using ripgrep. - [Find files](https://cognitio-agent.mintlify.app/api-reference/find-files.md): Search for files or directories by name or pattern in the project directory. - [Find symbols](https://cognitio-agent.mintlify.app/api-reference/find-symbols.md): Search for workspace symbols like functions, classes, and variables using LSP. - [List files](https://cognitio-agent.mintlify.app/api-reference/list-files.md): List files and directories in a specified path. - [Read file](https://cognitio-agent.mintlify.app/api-reference/read-file.md): Read the content of a specified file. - [Get file status](https://cognitio-agent.mintlify.app/api-reference/get-file-status.md): Get the git status of all files in the project. - [Subscribe to events](https://cognitio-agent.mintlify.app/api-reference/subscribe-to-events.md): Get events - [Get MCP status](https://cognitio-agent.mintlify.app/api-reference/get-mcp-status.md): Get the status of all Model Context Protocol (MCP) servers. - [Add MCP server](https://cognitio-agent.mintlify.app/api-reference/add-mcp-server.md): Dynamically add a new Model Context Protocol (MCP) server to the system. - [Start MCP OAuth](https://cognitio-agent.mintlify.app/api-reference/start-mcp-oauth.md): Start OAuth authentication flow for a Model Context Protocol (MCP) server. - [Remove MCP OAuth](https://cognitio-agent.mintlify.app/api-reference/remove-mcp-oauth.md): Remove OAuth credentials for an MCP server - [Complete MCP OAuth](https://cognitio-agent.mintlify.app/api-reference/complete-mcp-oauth.md): Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code. - [Authenticate MCP OAuth](https://cognitio-agent.mintlify.app/api-reference/authenticate-mcp-oauth.md): Start OAuth flow and wait for callback (opens browser) - [Post mcp connect](https://cognitio-agent.mintlify.app/api-reference/post-mcp-connect.md): Connect an MCP server - [Post mcp disconnect](https://cognitio-agent.mintlify.app/api-reference/post-mcp-disconnect.md): Disconnect an MCP server - [Append TUI prompt](https://cognitio-agent.mintlify.app/api-reference/append-tui-prompt.md): Append prompt to the TUI - [Open help dialog](https://cognitio-agent.mintlify.app/api-reference/open-help-dialog.md): Open the help dialog in the TUI to display user assistance information. - [Open sessions dialog](https://cognitio-agent.mintlify.app/api-reference/open-sessions-dialog.md): Open the session dialog - [Open themes dialog](https://cognitio-agent.mintlify.app/api-reference/open-themes-dialog.md): Open the theme dialog - [Open models dialog](https://cognitio-agent.mintlify.app/api-reference/open-models-dialog.md): Open the model dialog - [Submit TUI prompt](https://cognitio-agent.mintlify.app/api-reference/submit-tui-prompt.md): Submit the prompt - [Clear TUI prompt](https://cognitio-agent.mintlify.app/api-reference/clear-tui-prompt.md): Clear the prompt - [Execute TUI command](https://cognitio-agent.mintlify.app/api-reference/execute-tui-command.md): Execute a TUI command (e.g. agent_cycle) - [Show TUI toast](https://cognitio-agent.mintlify.app/api-reference/show-tui-toast.md): Show a toast notification in the TUI - [Publish TUI event](https://cognitio-agent.mintlify.app/api-reference/publish-tui-event.md): Publish a TUI event - [Select session](https://cognitio-agent.mintlify.app/api-reference/select-session.md): Navigate the TUI to display the specified session. - [Get next TUI request](https://cognitio-agent.mintlify.app/api-reference/get-next-tui-request.md): Retrieve the next TUI (Terminal User Interface) request from the queue for processing. - [Submit TUI response](https://cognitio-agent.mintlify.app/api-reference/submit-tui-response.md): Submit a response to the TUI request queue to complete a pending request. - [Dispose instance](https://cognitio-agent.mintlify.app/api-reference/dispose-instance-1.md): Clean up and dispose the current Cognitio instance, releasing all resources. - [Get paths](https://cognitio-agent.mintlify.app/api-reference/get-paths.md): Retrieve the current working directory and related path information for the Cognitio instance. - [Get VCS info](https://cognitio-agent.mintlify.app/api-reference/get-vcs-info.md): Retrieve version control system (VCS) information for the current project, such as git branch. - [Get VCS diff](https://cognitio-agent.mintlify.app/api-reference/get-vcs-diff.md): Retrieve the current git diff for the working tree or against the default branch. - [List commands](https://cognitio-agent.mintlify.app/api-reference/list-commands.md): Get a list of all available commands in the Cognitio system. - [List agents](https://cognitio-agent.mintlify.app/api-reference/list-agents.md): Get a list of all available AI agents in the Cognitio system. - [List skills](https://cognitio-agent.mintlify.app/api-reference/list-skills.md): Get a list of all available skills in the Cognitio system. - [Get LSP status](https://cognitio-agent.mintlify.app/api-reference/get-lsp-status.md): Get LSP server status - [Get formatter status](https://cognitio-agent.mintlify.app/api-reference/get-formatter-status.md): Get formatter status - [Get session](https://cognitio-agent.mintlify.app/api-reference/session/get-session.md): Retrieve detailed information about a specific Cognitio session. - [Get session children](https://cognitio-agent.mintlify.app/api-reference/session/get-session-children.md): Retrieve all child sessions that were forked from the specified parent session. - [Get runtime config](https://cognitio-agent.mintlify.app/api-reference/session/get-runtime-config.md): Retrieve the current session-scoped runtime config blob and effective view. - [Clear runtime config](https://cognitio-agent.mintlify.app/api-reference/session/clear-runtime-config.md): Reset the session-scoped runtime config blob to empty. - [Patch runtime config](https://cognitio-agent.mintlify.app/api-reference/session/patch-runtime-config.md): Merge a partial runtime config into the current session-scoped blob. - [Clear scoped runtime MCP clients](https://cognitio-agent.mintlify.app/api-reference/session/clear-scoped-runtime-mcp-clients.md): Close accepted-snapshot runtime MCP clients without changing the session runtime config blob. - [Respond to control request](https://cognitio-agent.mintlify.app/api-reference/session/respond-to-control-request.md): Resolve a pending SDK control-channel request for a session. - [Cancel control request](https://cognitio-agent.mintlify.app/api-reference/session/cancel-control-request.md): Cancel a pending SDK control-channel request for a session. - [List control requests](https://cognitio-agent.mintlify.app/api-reference/session/list-control-requests.md): List pending SDK control-channel requests for a session. - [AgentConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/AgentConfig.md): Exact type definition referenced by the public SDK. - [AgentPart](https://cognitio-agent.mintlify.app/api-reference/protocol/AgentPart.md): Exact type definition referenced by the public SDK. - [AgentPartInput](https://cognitio-agent.mintlify.app/api-reference/protocol/AgentPartInput.md): Exact type definition referenced by the public SDK. - [ApiAuth](https://cognitio-agent.mintlify.app/api-reference/protocol/ApiAuth.md): Exact type definition referenced by the public SDK. - [ApiError](https://cognitio-agent.mintlify.app/api-reference/protocol/ApiError.md): Exact type definition referenced by the public SDK. - [AssistantMessage](https://cognitio-agent.mintlify.app/api-reference/protocol/AssistantMessage.md): Exact type definition referenced by the public SDK. - [Auth](https://cognitio-agent.mintlify.app/api-reference/protocol/Auth.md): Exact type definition referenced by the public SDK. - [CompactionPart](https://cognitio-agent.mintlify.app/api-reference/protocol/CompactionPart.md): Exact type definition referenced by the public SDK. - [Config](https://cognitio-agent.mintlify.app/api-reference/protocol/Config.md): Exact type definition referenced by the public SDK. - [ContextOverflowError](https://cognitio-agent.mintlify.app/api-reference/protocol/ContextOverflowError.md): Exact type definition referenced by the public SDK. - [ControlCancelReason](https://cognitio-agent.mintlify.app/api-reference/protocol/ControlCancelReason.md): Exact type definition referenced by the public SDK. - [ControlPayload](https://cognitio-agent.mintlify.app/api-reference/protocol/ControlPayload.md): Exact type definition referenced by the public SDK. - [ControlRequest](https://cognitio-agent.mintlify.app/api-reference/protocol/ControlRequest.md): Exact type definition referenced by the public SDK. - [ControlRequestId](https://cognitio-agent.mintlify.app/api-reference/protocol/ControlRequestId.md): Exact type definition referenced by the public SDK. - [ControlSubtype](https://cognitio-agent.mintlify.app/api-reference/protocol/ControlSubtype.md): Exact type definition referenced by the public SDK. - [Event](https://cognitio-agent.mintlify.app/api-reference/protocol/Event.md): Exact type definition referenced by the public SDK. - [EventCommandExecuted](https://cognitio-agent.mintlify.app/api-reference/protocol/EventCommandExecuted.md): Exact type definition referenced by the public SDK. - [EventControlCancelled](https://cognitio-agent.mintlify.app/api-reference/protocol/EventControlCancelled.md): Exact type definition referenced by the public SDK. - [EventControlRequest](https://cognitio-agent.mintlify.app/api-reference/protocol/EventControlRequest.md): Exact type definition referenced by the public SDK. - [EventFileEdited](https://cognitio-agent.mintlify.app/api-reference/protocol/EventFileEdited.md): Exact type definition referenced by the public SDK. - [EventFileWatcherUpdated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventFileWatcherUpdated.md): Exact type definition referenced by the public SDK. - [EventGlobalDisposed](https://cognitio-agent.mintlify.app/api-reference/protocol/EventGlobalDisposed.md): Exact type definition referenced by the public SDK. - [EventInstallationUpdateAvailable](https://cognitio-agent.mintlify.app/api-reference/protocol/EventInstallationUpdateAvailable.md): Exact type definition referenced by the public SDK. - [EventInstallationUpdated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventInstallationUpdated.md): Exact type definition referenced by the public SDK. - [EventLspClientDiagnostics](https://cognitio-agent.mintlify.app/api-reference/protocol/EventLspClientDiagnostics.md): Exact type definition referenced by the public SDK. - [EventLspUpdated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventLspUpdated.md): Exact type definition referenced by the public SDK. - [EventMcpBrowserOpenFailed](https://cognitio-agent.mintlify.app/api-reference/protocol/EventMcpBrowserOpenFailed.md): Exact type definition referenced by the public SDK. - [EventMcpToolsChanged](https://cognitio-agent.mintlify.app/api-reference/protocol/EventMcpToolsChanged.md): Exact type definition referenced by the public SDK. - [EventMessagePartDelta](https://cognitio-agent.mintlify.app/api-reference/protocol/EventMessagePartDelta.md): Exact type definition referenced by the public SDK. - [EventMessagePartRemoved](https://cognitio-agent.mintlify.app/api-reference/protocol/EventMessagePartRemoved.md): Exact type definition referenced by the public SDK. - [EventMessagePartUpdated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventMessagePartUpdated.md): Exact type definition referenced by the public SDK. - [EventMessageRemoved](https://cognitio-agent.mintlify.app/api-reference/protocol/EventMessageRemoved.md): Exact type definition referenced by the public SDK. - [EventMessageUpdated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventMessageUpdated.md): Exact type definition referenced by the public SDK. - [EventPermissionAsked](https://cognitio-agent.mintlify.app/api-reference/protocol/EventPermissionAsked.md): Exact type definition referenced by the public SDK. - [EventPermissionReplied](https://cognitio-agent.mintlify.app/api-reference/protocol/EventPermissionReplied.md): Exact type definition referenced by the public SDK. - [EventProjectUpdated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventProjectUpdated.md): Exact type definition referenced by the public SDK. - [EventPtyCreated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventPtyCreated.md): Exact type definition referenced by the public SDK. - [EventPtyDeleted](https://cognitio-agent.mintlify.app/api-reference/protocol/EventPtyDeleted.md): Exact type definition referenced by the public SDK. - [EventPtyExited](https://cognitio-agent.mintlify.app/api-reference/protocol/EventPtyExited.md): Exact type definition referenced by the public SDK. - [EventPtyUpdated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventPtyUpdated.md): Exact type definition referenced by the public SDK. - [EventQuestionAsked](https://cognitio-agent.mintlify.app/api-reference/protocol/EventQuestionAsked.md): Exact type definition referenced by the public SDK. - [EventQuestionRejected](https://cognitio-agent.mintlify.app/api-reference/protocol/EventQuestionRejected.md): Exact type definition referenced by the public SDK. - [EventQuestionReplied](https://cognitio-agent.mintlify.app/api-reference/protocol/EventQuestionReplied.md): Exact type definition referenced by the public SDK. - [EventServerConnected](https://cognitio-agent.mintlify.app/api-reference/protocol/EventServerConnected.md): Exact type definition referenced by the public SDK. - [EventServerInstanceDisposed](https://cognitio-agent.mintlify.app/api-reference/protocol/EventServerInstanceDisposed.md): Exact type definition referenced by the public SDK. - [EventSessionCheckpointCreated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionCheckpointCreated.md): Exact type definition referenced by the public SDK. - [EventSessionCompacted](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionCompacted.md): Exact type definition referenced by the public SDK. - [EventSessionCreated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionCreated.md): Exact type definition referenced by the public SDK. - [EventSessionDeleted](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionDeleted.md): Exact type definition referenced by the public SDK. - [EventSessionDiff](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionDiff.md): Exact type definition referenced by the public SDK. - [EventSessionError](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionError.md): Exact type definition referenced by the public SDK. - [EventSessionIdle](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionIdle.md): Exact type definition referenced by the public SDK. - [EventSessionRateLimitHit](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionRateLimitHit.md): Exact type definition referenced by the public SDK. - [EventSessionResult](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionResult.md): Exact type definition referenced by the public SDK. - [EventSessionRewound](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionRewound.md): Exact type definition referenced by the public SDK. - [EventSessionStatus](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionStatus.md): Exact type definition referenced by the public SDK. - [EventSessionUpdated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSessionUpdated.md): Exact type definition referenced by the public SDK. - [EventSubagentProgress](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSubagentProgress.md): Exact type definition referenced by the public SDK. - [EventSubagentStarted](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSubagentStarted.md): Exact type definition referenced by the public SDK. - [EventSubagentStopped](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSubagentStopped.md): Exact type definition referenced by the public SDK. - [EventSystemCompactBoundary](https://cognitio-agent.mintlify.app/api-reference/protocol/EventSystemCompactBoundary.md): Exact type definition referenced by the public SDK. - [EventTaskNotification](https://cognitio-agent.mintlify.app/api-reference/protocol/EventTaskNotification.md): Exact type definition referenced by the public SDK. - [EventTaskProgress](https://cognitio-agent.mintlify.app/api-reference/protocol/EventTaskProgress.md): Exact type definition referenced by the public SDK. - [EventTaskStarted](https://cognitio-agent.mintlify.app/api-reference/protocol/EventTaskStarted.md): Exact type definition referenced by the public SDK. - [EventTaskStopped](https://cognitio-agent.mintlify.app/api-reference/protocol/EventTaskStopped.md): Exact type definition referenced by the public SDK. - [EventTodoUpdated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventTodoUpdated.md): Exact type definition referenced by the public SDK. - [EventTuiCommandExecute](https://cognitio-agent.mintlify.app/api-reference/protocol/EventTuiCommandExecute.md): Exact type definition referenced by the public SDK. - [EventTuiPromptAppend](https://cognitio-agent.mintlify.app/api-reference/protocol/EventTuiPromptAppend.md): Exact type definition referenced by the public SDK. - [EventTuiSessionSelect](https://cognitio-agent.mintlify.app/api-reference/protocol/EventTuiSessionSelect.md): Exact type definition referenced by the public SDK. - [EventTuiToastShow](https://cognitio-agent.mintlify.app/api-reference/protocol/EventTuiToastShow.md): Exact type definition referenced by the public SDK. - [EventVcsBranchUpdated](https://cognitio-agent.mintlify.app/api-reference/protocol/EventVcsBranchUpdated.md): Exact type definition referenced by the public SDK. - [EventWorkspaceFailed](https://cognitio-agent.mintlify.app/api-reference/protocol/EventWorkspaceFailed.md): Exact type definition referenced by the public SDK. - [EventWorkspaceReady](https://cognitio-agent.mintlify.app/api-reference/protocol/EventWorkspaceReady.md): Exact type definition referenced by the public SDK. - [EventWorkspaceRestore](https://cognitio-agent.mintlify.app/api-reference/protocol/EventWorkspaceRestore.md): Exact type definition referenced by the public SDK. - [EventWorkspaceStatus](https://cognitio-agent.mintlify.app/api-reference/protocol/EventWorkspaceStatus.md): Exact type definition referenced by the public SDK. - [EventWorktreeFailed](https://cognitio-agent.mintlify.app/api-reference/protocol/EventWorktreeFailed.md): Exact type definition referenced by the public SDK. - [EventWorktreeReady](https://cognitio-agent.mintlify.app/api-reference/protocol/EventWorktreeReady.md): Exact type definition referenced by the public SDK. - [FilePart](https://cognitio-agent.mintlify.app/api-reference/protocol/FilePart.md): Exact type definition referenced by the public SDK. - [FilePartInput](https://cognitio-agent.mintlify.app/api-reference/protocol/FilePartInput.md): Exact type definition referenced by the public SDK. - [FilePartSource](https://cognitio-agent.mintlify.app/api-reference/protocol/FilePartSource.md): Exact type definition referenced by the public SDK. - [FilePartSourceText](https://cognitio-agent.mintlify.app/api-reference/protocol/FilePartSourceText.md): Exact type definition referenced by the public SDK. - [FileSource](https://cognitio-agent.mintlify.app/api-reference/protocol/FileSource.md): Exact type definition referenced by the public SDK. - [JsonSchema](https://cognitio-agent.mintlify.app/api-reference/protocol/JsonSchema.md): Exact type definition referenced by the public SDK. - [LayoutConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/LayoutConfig.md): Exact type definition referenced by the public SDK. - [LogLevel](https://cognitio-agent.mintlify.app/api-reference/protocol/LogLevel.md): Exact type definition referenced by the public SDK. - [McpLocalConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/McpLocalConfig.md): Exact type definition referenced by the public SDK. - [McpOAuthConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/McpOAuthConfig.md): Exact type definition referenced by the public SDK. - [McpRemoteConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/McpRemoteConfig.md): Exact type definition referenced by the public SDK. - [Message](https://cognitio-agent.mintlify.app/api-reference/protocol/Message.md): Exact type definition referenced by the public SDK. - [MessageAbortedError](https://cognitio-agent.mintlify.app/api-reference/protocol/MessageAbortedError.md): Exact type definition referenced by the public SDK. - [MessageOutputLengthError](https://cognitio-agent.mintlify.app/api-reference/protocol/MessageOutputLengthError.md): Exact type definition referenced by the public SDK. - [OAuth](https://cognitio-agent.mintlify.app/api-reference/protocol/OAuth.md): Exact type definition referenced by the public SDK. - [OutputFormat](https://cognitio-agent.mintlify.app/api-reference/protocol/OutputFormat.md): Exact type definition referenced by the public SDK. - [OutputFormatJsonSchema](https://cognitio-agent.mintlify.app/api-reference/protocol/OutputFormatJsonSchema.md): Exact type definition referenced by the public SDK. - [OutputFormatText](https://cognitio-agent.mintlify.app/api-reference/protocol/OutputFormatText.md): Exact type definition referenced by the public SDK. - [Part](https://cognitio-agent.mintlify.app/api-reference/protocol/Part.md): Exact type definition referenced by the public SDK. - [PatchPart](https://cognitio-agent.mintlify.app/api-reference/protocol/PatchPart.md): Exact type definition referenced by the public SDK. - [PermissionAction](https://cognitio-agent.mintlify.app/api-reference/protocol/PermissionAction.md): Exact type definition referenced by the public SDK. - [PermissionActionConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/PermissionActionConfig.md): Exact type definition referenced by the public SDK. - [PermissionConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/PermissionConfig.md): Exact type definition referenced by the public SDK. - [PermissionObjectConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/PermissionObjectConfig.md): Exact type definition referenced by the public SDK. - [PermissionRequest](https://cognitio-agent.mintlify.app/api-reference/protocol/PermissionRequest.md): Exact type definition referenced by the public SDK. - [PermissionRule](https://cognitio-agent.mintlify.app/api-reference/protocol/PermissionRule.md): Exact type definition referenced by the public SDK. - [PermissionRuleConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/PermissionRuleConfig.md): Exact type definition referenced by the public SDK. - [PermissionRuleset](https://cognitio-agent.mintlify.app/api-reference/protocol/PermissionRuleset.md): Exact type definition referenced by the public SDK. - [Project](https://cognitio-agent.mintlify.app/api-reference/protocol/Project.md): Exact type definition referenced by the public SDK. - [ProviderAuthError](https://cognitio-agent.mintlify.app/api-reference/protocol/ProviderAuthError.md): Exact type definition referenced by the public SDK. - [ProviderConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/ProviderConfig.md): Exact type definition referenced by the public SDK. - [Pty](https://cognitio-agent.mintlify.app/api-reference/protocol/Pty.md): Exact type definition referenced by the public SDK. - [QuestionAnswer](https://cognitio-agent.mintlify.app/api-reference/protocol/QuestionAnswer.md): Exact type definition referenced by the public SDK. - [QuestionInfo](https://cognitio-agent.mintlify.app/api-reference/protocol/QuestionInfo.md): Exact type definition referenced by the public SDK. - [QuestionOption](https://cognitio-agent.mintlify.app/api-reference/protocol/QuestionOption.md): Exact type definition referenced by the public SDK. - [QuestionRejected](https://cognitio-agent.mintlify.app/api-reference/protocol/QuestionRejected.md): Exact type definition referenced by the public SDK. - [QuestionReplied](https://cognitio-agent.mintlify.app/api-reference/protocol/QuestionReplied.md): Exact type definition referenced by the public SDK. - [QuestionRequest](https://cognitio-agent.mintlify.app/api-reference/protocol/QuestionRequest.md): Exact type definition referenced by the public SDK. - [QuestionTool](https://cognitio-agent.mintlify.app/api-reference/protocol/QuestionTool.md): Exact type definition referenced by the public SDK. - [Range](https://cognitio-agent.mintlify.app/api-reference/protocol/Range.md): Exact type definition referenced by the public SDK. - [ReasoningPart](https://cognitio-agent.mintlify.app/api-reference/protocol/ReasoningPart.md): Exact type definition referenced by the public SDK. - [ResourceSource](https://cognitio-agent.mintlify.app/api-reference/protocol/ResourceSource.md): Exact type definition referenced by the public SDK. - [RetryPart](https://cognitio-agent.mintlify.app/api-reference/protocol/RetryPart.md): Exact type definition referenced by the public SDK. - [ServerConfig](https://cognitio-agent.mintlify.app/api-reference/protocol/ServerConfig.md): Exact type definition referenced by the public SDK. - [Session](https://cognitio-agent.mintlify.app/api-reference/protocol/Session.md): Exact type definition referenced by the public SDK. - [SessionCheckpoint](https://cognitio-agent.mintlify.app/api-reference/protocol/SessionCheckpoint.md): Exact type definition referenced by the public SDK. - [SessionStatus](https://cognitio-agent.mintlify.app/api-reference/protocol/SessionStatus.md): Exact type definition referenced by the public SDK. - [SnapshotFileDiff](https://cognitio-agent.mintlify.app/api-reference/protocol/SnapshotFileDiff.md): Exact type definition referenced by the public SDK. - [SnapshotPart](https://cognitio-agent.mintlify.app/api-reference/protocol/SnapshotPart.md): Exact type definition referenced by the public SDK. - [StepFinishPart](https://cognitio-agent.mintlify.app/api-reference/protocol/StepFinishPart.md): Exact type definition referenced by the public SDK. - [StepStartPart](https://cognitio-agent.mintlify.app/api-reference/protocol/StepStartPart.md): Exact type definition referenced by the public SDK. - [StructuredOutputError](https://cognitio-agent.mintlify.app/api-reference/protocol/StructuredOutputError.md): Exact type definition referenced by the public SDK. - [SubtaskPart](https://cognitio-agent.mintlify.app/api-reference/protocol/SubtaskPart.md): Exact type definition referenced by the public SDK. - [SubtaskPartInput](https://cognitio-agent.mintlify.app/api-reference/protocol/SubtaskPartInput.md): Exact type definition referenced by the public SDK. - [SymbolSource](https://cognitio-agent.mintlify.app/api-reference/protocol/SymbolSource.md): Exact type definition referenced by the public SDK. - [TextPart](https://cognitio-agent.mintlify.app/api-reference/protocol/TextPart.md): Exact type definition referenced by the public SDK. - [TextPartInput](https://cognitio-agent.mintlify.app/api-reference/protocol/TextPartInput.md): Exact type definition referenced by the public SDK. - [Todo](https://cognitio-agent.mintlify.app/api-reference/protocol/Todo.md): Exact type definition referenced by the public SDK. - [ToolPart](https://cognitio-agent.mintlify.app/api-reference/protocol/ToolPart.md): Exact type definition referenced by the public SDK. - [ToolState](https://cognitio-agent.mintlify.app/api-reference/protocol/ToolState.md): Exact type definition referenced by the public SDK. - [ToolStateCompleted](https://cognitio-agent.mintlify.app/api-reference/protocol/ToolStateCompleted.md): Exact type definition referenced by the public SDK. - [ToolStateError](https://cognitio-agent.mintlify.app/api-reference/protocol/ToolStateError.md): Exact type definition referenced by the public SDK. - [ToolStatePending](https://cognitio-agent.mintlify.app/api-reference/protocol/ToolStatePending.md): Exact type definition referenced by the public SDK. - [ToolStateRunning](https://cognitio-agent.mintlify.app/api-reference/protocol/ToolStateRunning.md): Exact type definition referenced by the public SDK. - [UnknownError](https://cognitio-agent.mintlify.app/api-reference/protocol/UnknownError.md): Exact type definition referenced by the public SDK. - [UserMessage](https://cognitio-agent.mintlify.app/api-reference/protocol/UserMessage.md): Exact type definition referenced by the public SDK. - [WellKnownAuth](https://cognitio-agent.mintlify.app/api-reference/protocol/WellKnownAuth.md): Exact type definition referenced by the public SDK. ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.