Module context

Module context 

Source
Expand description

Execution context types for tools and plugins.

ToolCallContext provides state access, run policy, and identity for tool execution. It replaces direct &Thread usage in tool signatures, keeping the persistent entity (Thread) invisible to tools and plugins.

Structs§

ActivityContext
Activity-scoped state context.
CallerContext
Typed caller metadata exposed to tool executions.
ToolCallContext
Execution context for tool invocations.
ToolCallProgressState
Canonical tree-node payload for tool-call progress updates.
ToolCallProgressStateRef
Typed state reference for reading and writing state.
ToolCallProgressUpdate
Input shape for publishing tool-call progress updates.
ToolProgressState
Canonical activity state shape for tool progress updates.
ToolProgressStateRef
Typed state reference for reading and writing state.

Enums§

ToolCallProgressStatus
Status marker for a tool-call progress node.

Constants§

TOOL_CALL_PROGRESS_ACTIVITY_TYPE
Activity type used for tool-call progress updates.
TOOL_CALL_PROGRESS_SCHEMA
Canonical payload schema version for tool-call progress events.
TOOL_CALL_PROGRESS_TYPE
Canonical payload type value for tool-call progress events.
TOOL_PROGRESS_ACTIVITY_TYPE
Legacy public alias kept for backward compatibility.
TOOL_PROGRESS_ACTIVITY_TYPE_LEGACY
Legacy activity type accepted by consumers.

Traits§

ToolCallProgressSink
Sink interface for tool-call progress events.