> ## 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: Run the agent with a prompt (alias for chat in most cases).

# run

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

> This is a method of the [**RunnableAgentProtocol**](../classes/RunnableAgentProtocol) class in the [**protocols**](../modules/protocols) module.

Run the agent with a prompt (alias for chat in most cases).

## Signature

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

## Parameters

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

### Returns

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

## Used By

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

## Source

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