pub struct BuiltinToolsConfig<E: Environment + 'static> {
pub environment: Arc<E>,
pub capabilities: AgentCapabilities,
pub todo_state: Option<Arc<RwLock<TodoState>>>,
pub link_fetch: bool,
}Expand description
Configuration for register_builtin_tools.
Every field except environment and capabilities is optional
because the corresponding tool family has side effects or
dependencies that must be provisioned by the host.
The tool families with more complex constructors — in particular
AskUserQuestionTool
(requires a pair of mpsc channels) and
WebSearchTool (requires a typed
SearchProvider) — are not wired through this config to
avoid over-coupling it to transport or provider choices. Register
them with register_web_search or directly against the registry.
Fields§
§environment: Arc<E>Filesystem environment used by the primitive tools.
capabilities: AgentCapabilitiesCapability policy enforced by the primitive tools.
todo_state: Option<Arc<RwLock<TodoState>>>Shared todo state. When Some, registers TodoRead / TodoWrite.
link_fetch: boolweb only.When true, registers LinkFetchTool with default settings.
Only present when the web feature is enabled.