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

# Process Conversation • AI Agent SDK

> process_conversation: Process a conversation to extract learnings automatically.

# process\_conversation

Method

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

Process a conversation to extract learnings automatically.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def process_conversation(messages: List[Dict[str, Any]], llm: Optional[str]) -> Dict[str, Any]
```

## Parameters

**messages** `List` *required*

Conversation messages

**llm** `Optional[str]`

Optional LLM model to use for extraction

### Returns

**Returns** `Dict[str, Any]`

Dictionary with extracted learnings

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/memory/learn/protocols.py#L243)
>
> `praisonaiagents/memory/learn/protocols.py` at line 243


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