Package-level declarations
Types
Base class representing a tool that can be invoked by the LLM. Tools are usually used to return results, make changes to the environment, or perform other actions.
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.
Represents a result produced by a tool operation. This is a marker interface implemented by various result types.
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.