Package-level declarations
Types
A tool with a no-metadata execute shape. The runtime dispatches it through ToolBase.execute; this subclass's final override forwards to execute and discards any per-call ToolCallMetadata supplied by the caller or contributed by features.
Immutable, caller-contributed context threaded into Tool.execute alongside the typed arguments.
Represents a descriptor for a tool that contains information about the tool's name, description, required parameters, and optional parameters.
A base sealed class representing exceptions specific to tools. This class provides a structure for exceptions with a custom message.
Represents a descriptor for a tool parameter. A tool parameter descriptor contains information about a specific tool parameter, such as its name, description, data type, and default value.
Sealed class representing different types of tool parameters.
A registry that manages a collection of tools for use by agents.
A builder class for creating a ToolRegistry instance. This class provides methods to configure and register tools, either individually or as a list, and then constructs a registry containing the defined tools.
A builder class for creating a ToolRegistry instance. This class provides methods to configure and register tools, either individually or as a list, and then constructs a registry containing the defined tools.
A builder class for creating a ToolRegistry instance. This class provides methods to configure and register tools, either individually or as a list, and then constructs a registry containing the defined tools.
Functions
Throws a ToolException.ValidationFailure exception with the specified error message.
Validates a given condition and throws a ToolException.ValidationFailure exception if the condition is not met.
Validates that the provided value is not null. If the value is null, a ToolException.ValidationFailure exception is thrown with the provided error message.