Skip to content
English

工具与能力 ​

Core · 接口与运行保证 · 返回本层目录

符号类别用途
ErasedToolinterfaceType-erased tool shape the registry executes after parsing at the boundary.
ExecutableToolinterfaceOne registered tool, typed by its input, output, host context and id literal.
executeInvocationfunctionRun one synchronous invocation and record its effects.
InvocationHandlerinterfaceA named handler invoked by a tool lifecycle step.
RegisteredTooltypeRegistered snapshot: public data is retained, implementation helpers are not a contract.
ToolDefinitiontypeConfiguration form; Support supplies the identity resolver when omitted.
ToolExecutionContextinterfaceExecution facts handed to a tool for one invocation.
ToolExecutionEventinterfaceFact emitted when one tool call settles, correlated by invocationId.
ToolInvocationPortsinterfaceOptional tools the lifecycle resolves from the host context for one invocation.
ToolInvocationRequestinterfaceOne invocation request; the registry supplies signal and diagnostics when omitted.
ToolJournalinterfaceRequest-local execution receipts; the host decides their domain content.
ToolJournalFinishinterfaceClosing record for one tool call, written once with the terminal outcome.
ToolJournalStartinterfaceOpening record for one tool call, written before the handler runs.
ToolRegistryclassRegistry mechanism only: visibility, authorization policy, schemas and semantic metadata are host registrations. A registry is mutable until sealed and keeps its own call log.
ToolRegistryOptionsinterfaceRegistry construction options.
ToolRegistryPortsinterfaceHost ports a tool registry needs in addition to the tool definitions.

接口参考、使用示例与开发指南。