> ## 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 • AI Agent SDK

> chat: Synchronous chat with the agent.

# chat

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

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

Synchronous chat with the agent.

## Signature

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

## Parameters

<ParamField query="prompt" type="str" required={true}>
  The user prompt or message \*\*kwargs: Additional optional parameters (temperature, tools, etc.)
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  The agent's response as a string
</ResponseField>

## Used By

* [`Agent.chat_with_context`](../functions/Agent-chat_with_context)
* [`TypedHandoff.execute_programmatic`](../functions/TypedHandoff-execute_programmatic)
* [`AutoRagAgent.chat`](../functions/AutoRagAgent-chat)
* [`AutoRagAgent.achat`](../functions/AutoRagAgent-achat)
* [`LLMRuntimeWrapper.execute`](../functions/LLMRuntimeWrapper-execute)

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Chat Feature" icon="comments" href="/docs/docs/features/chat" />

  <Card title="Conversation Stores" icon="database" href="/docs/docs/databases/overview" />
</CardGroup>
