Custom Tools
Source-backed registration paths
Section titled “Source-backed registration paths”You can create tools in three main ways:
- Attribute-based methods with
[Tool]and[ToolParam] - Reflection helpers like
Tool.FromType<T>()andTool.FromMethod<T>() - Fluent builder definitions with
Tool.Create(...)
Tool context
Section titled “Tool context”Tool handlers receive IToolContext, which is also how interactive tools can request user input when an IToolContextProvider is configured.
Examples
Section titled “Examples”Real examples live in:
ToolsDemoSdkShowcaseProvidersDemofor manualToolDefinitionusage