Skip to content
中文

Tools & capabilities ​

Kit · Optional business libraries · Back to layer index

SymbolKindPurpose
LifecycleHooksinterfaceEverything one tool declares for a request. Declaring id turns the tool into an invocation owner, so protocol and call become required in practice; the registry rejects a partial declaration. Every other hook is optional and returning nothing expresses "no opinion".
LifecycleProtocolinterfaceOutput protocol carried by a tool lifecycle.
PolicyinterfaceRegistration policy shared by every tool in the registry.
RegisteredToolDefinitiontypeRegistered snapshot with frozen goal ids and projected hooks.
ToolinterfaceA registered tool: model metadata plus one optional lifecycle block.
ToolFinalizertypeConverts an executed decision into the tool result; must be synchronous.
ToolLifecycleRegistryclassRegistry of tools whose lifecycle, protocols and context contributions the App declares. Registration is only possible before seal(); afterwards the catalog is read-only, so a run cannot change which tools exist. Every hook is optional and is applied in registration order, which is why registerAll preserves iteration order.
ToolModelFieldinterfaceOne model-context field contributed by a tool.
ToolNormalizertypeConverts untrusted input into a decision; must be synchronous.
ToolProtocoltypeProtocol type of a tool's lifecycle invocation.
ToolRegistrationtypeDeclaration form; the registry derives the ModelTool projection from existing handlers.
ToolRuntimeTypesinterfaceOne schema binds lifecycle handler types without introducing platform fields into core.
ToolsOptionsinterfaceConstruction options for a tool registry.

API reference, usage examples and developer guides.