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

# Capture Insight • AI Agent SDK

> capture_insight: Capture an observation or learning.

# capture\_insight

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

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

Capture an observation or learning.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def capture_insight(content: str, source: str) -> Optional[Dict[str, Any]]
```

## Parameters

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

<ParamField query="source" type="str" required={false} default="'interaction'">
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Optional[Dict[str, Any]]">
  The result of the operation.
</ResponseField>

## Source

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