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

Decision-making agent for the ReAct pattern.

This agent evaluates the current context and decides on the next action to take,
including whether to plan, act with a tool, or finish and summarize.

# `receive_event_async`

Receives and processes an InvokeDecisioning event.

Evaluates the current context and determines the next action (PLAN, ACT, FINISH).

## Parameters

- `broker`: LLM broker for making decisions
- `event`: InvokeDecisioning event containing current context

## Returns

- `{:ok, [event]}` where event is one of: InvokeToolCall, FinishAndSummarize,
  InvokeThinking, or FailureOccurred

---

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