# `Mojentic.Examples.React.SummarizationAgent`
[🔗](https://github.com/svetzal/mojentic-ex/blob/v1.5.0/lib/mojentic/examples/react/summarization_agent.ex#L1)

Summarization agent for the ReAct pattern.

This agent generates the final answer based on accumulated context,
synthesizing all the information gathered during the ReAct loop.

# `receive_event_async`

Receives and processes a FinishAndSummarize event.

Generates a final answer based on the complete context history.

## Parameters

- `broker`: LLM broker for generating the final summary
- `event`: FinishAndSummarize event containing complete context

## Returns

- `{:ok, []}` - Terminal event (stops the loop)
- `{:ok, [FailureOccurred.t()]}` on error

---

*Consult [api-reference.md](api-reference.md) for complete listing*
