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

# run • AI Agent SDK

> run: Execute the wrapped function with injected state.

# run

Method

> This is a method of the [**FunctionTool**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/FunctionTool.md) class in the [**decorator**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/decorator.md) module.

Execute the wrapped function with injected state.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def run() -> Any
```

### Returns

**Returns** `Any`

The result of the operation.

## Uses

* `inject_state_into_kwargs`

## Used By

* [`Agent.run_until`](../functions/Agent-run_until)
* [`MCPToolRunner.run`](../functions/MCPToolRunner-run)
* [`run_health_checks`](../functions/run_health_checks)
* [`GitRemoteSkillSource.fetch`](../functions/GitRemoteSkillSource-fetch)
* [`BaseTool.safe_run`](../functions/BaseTool-safe_run)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/decorator.py#L212)
>
> `praisonaiagents/tools/decorator.py` at line 212


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.