Validate Class • AI Agent SDK

validate_class: Validate a tool class before instantiation.

validate_class

Method

</div>

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

Validate a tool class before instantiation.

This can be used to check if a class is a valid tool without creating an instance.

Signature

python
def validate_class() -> bool

Returns

ResponseField bool

True if the class appears to be a valid tool

Source

View on GitHub

praisonaiagents/tools/base.py at line 459