Expand description
Common utilities for agent tools
This module provides shared functionality used across multiple tools:
- Schema generation for OpenAI-compatible tool definitions
- Error type macros
- Repository initialization helpers
Macros§
- define_
tool_ error - Macro to define a tool error type with standard From implementations.
Functions§
- get_
current_ repo - Get the current repository from the working directory. This is a common operation used by most tools.
- parameters_
schema - Generate a JSON schema for tool parameters that’s
OpenAI-compatible.OpenAItool schemas require therequiredarray to list every property.