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

Tool execution agent for the ReAct pattern.

This agent handles the actual execution of tools and captures the results,
updating the context history with observations.

# `receive_event_async`

Receives and processes an InvokeToolCall event.

Executes the specified tool with the provided arguments and updates
the context with the results.

## Parameters

- `_broker`: LLM broker (unused by this agent)
- `event`: InvokeToolCall event containing tool and arguments

## Returns

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

---

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