Tools are validated functions that agents can call to perform specific actions
like querying databases, searching knowledge bases, or creating resources.
Note: When using with schema validation libraries like Zod, implement the
validation in the concrete tool class.
Base class for tools that AI agents can use.
Tools are validated functions that agents can call to perform specific actions like querying databases, searching knowledge bases, or creating resources.
Note: When using with schema validation libraries like Zod, implement the validation in the concrete tool class.
Example