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

Planning agent for the ReAct pattern.

This agent creates structured plans for solving user queries using
an LLM to analyze the problem and break it into actionable steps.

# `receive_event_async`

Receives and processes an InvokeThinking event.

Creates a plan for solving the user query by analyzing available tools
and the current context.

## Parameters

- `broker`: LLM broker for generating plans
- `event`: InvokeThinking event containing current context

## Returns

- `{:ok, [InvokeDecisioning.t()]}` with updated context
- `{:ok, [FailureOccurred.t()]}` on error

---

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