> ## 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 • Rust 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(&self, prompt: &str) -> Result<String>
```

## Parameters

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

### Returns

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