> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate Class • AI Agent SDK

> validate_class: Validate a tool class before instantiation.

# validate\_class

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**BaseTool**](../classes/BaseTool) class in the [**base**](../modules/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 theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def validate_class() -> bool
```

### Returns

<ResponseField name="Returns" type="bool">
  True if the class appears to be a valid tool
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/base.py#L445">
  `praisonaiagents/tools/base.py` at line 445
</Card>
