validate • AI Agent SDK

validate: Validate the tool configuration.

validate

Method

</div>

This is a method of the BaseTool class in the base module.

Validate the tool configuration.

Signature

python
def validate() -> bool

Returns

ResponseField bool

True if validation passes

Exceptions

ToolValidationError

If validation fails

Uses

  • get_schema
  • ToolValidationError

Used By

Source

View on GitHub

praisonaiagents/tools/base.py at line 361