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

# chat • Rust AI Agent SDK

> chat: Chat with the agent (main entry point) This is the primary method for interacting with an agent. It handles the full conversation loop including tool...

# chat

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

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

Chat with the agent (main entry point) This is the primary method for interacting with an agent. It handles the full conversation loop including tool calls.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def chat(&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>
