> ## 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.

# Is Yaml Approved • AI Agent SDK

> is_yaml_approved: Check if a tool is auto-approved via YAML approve field.

# is\_yaml\_approved

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**approval**](../modules/approval) module.

Check if a tool is auto-approved via YAML approve field.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def is_yaml_approved(tool_name: str) -> bool
```

## Parameters

<ParamField query="tool_name" type="str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  The result of the operation.
</ResponseField>

## Used By

* [`Agent.execute_tool_async`](../functions/Agent-execute_tool_async)
* [`require_approval`](../functions/require_approval)

## Source

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