Skip to main content

Module typed_tool

Module typed_tool 

Source
Expand description

Public typed tool namespace. Use it for typed arguments, schemas, handlers, and executor adapters that lower into core tool execution. Typed tool authoring helpers layered over core tool execution ports. Helpers in this module build tool declarations and executors; execution, policy, approval, journals, events, and recovery remain owned by agent-sdk-core.

Structs§

FunctionTool
Builder-first function-tool authoring entry point.
FunctionToolBuilder
Builder for FunctionTool.
ToolError
Structured typed tool error.
ToolIdentity
Stable identity for a typed tool declaration.
ToolSchemaSnapshot
Provider-safe schema snapshot for a typed tool.
TypedTool
Typed tool declaration plus handler adapter.
TypedToolBuilder
Builder for a typed tool.
TypedToolContext
Execution context passed to typed tool handlers.

Enums§

ToolErrorKind
Typed tool error kind.

Traits§

AsyncToolRunner
Host-provided runner for async typed handlers while core execution remains sync.
JsonToolArgumentStore
JSON argument store for typed tool execution.
JsonToolContentStore
JSON content store for typed tool outputs.
ToolArgs
Typed arguments for a toolkit-authored tool.
ToolOutput
Typed output returned by a toolkit-authored tool.

Type Aliases§

ToolResult
Result type returned by typed tool handlers.