Skip to main content

Module api_types

Module api_types 

Source

Structs§

AdditionalWorkingDirectory
Additional working directory configuration
AgentToolProgress
Agent tool progress data
BashProgress
Bash tool progress data
InvokedSkill
IterationUsage
Per-iteration usage from the Anthropic API (server-side tool loops)
McpHttpConfig
McpProgress
MCP tool progress data
McpSseConfig
McpStdioConfig
McpTool
MCP tool representation from server
Message
PermissionResult
Permission result from permission checks
QueryChainTracking
Query chain tracking for nested agent calls
QueryResult
ReplProgress
REPL tool progress data
SkillInfo
SkillToolProgress
Skill tool progress data
TaskOutputProgress
Task output progress data
TokenUsage
ToolAnnotations
Tool annotations for classification
ToolCall
A tool call from the model
ToolContext
ToolDefinition
ToolInputJSONSchema
Tool input JSON schema (for MCP tools)
ToolInputSchema
ToolPermissionContext
Tool permission context - full context for permission checks
ToolProgress
Tool progress with tool use ID
ToolResult
ToolResultStructured
Tool result with structured content (supports tool_reference blocks)
WebSearchProgress
Web search progress data

Enums§

AgentEvent
Agent event types for streaming updates (matches TypeScript behavior)
Attachment
Attachments for messages - files, images, etc.
CompactHookType
Compact hook types
CompactProgressEvent
Compact progress event types
ContentDelta
Content delta types for streaming
ExitReason
Exit reasons from the query loop (matches TypeScript Terminal type)
McpConnectionStatus
MCP connection status
McpServerConfig
MCP server configuration (union type)
MessageRole
PermissionBehavior
Permission behavior types
PermissionMode
Tool permission mode
ThinkingConfig
Thinking configuration for the API (matches TypeScript ThinkingConfig)
ToolProgressData
Tool progress data - enum of all progress types
ToolResultContent
Content block within a tool_result — either text or tool_reference
ValidationResult
Validation result for tool input Source: /data/home/swei/claudecode/openclaudecode/src/Tool.ts

Functions§

filter_tool_progress_messages
Filter progress messages to only tool progress (not hook progress)
get_empty_tool_permission_context
Create empty tool permission context

Type Aliases§

ToolPermissionRulesBySource
Additional tool permission rules by source