Mojentic.Examples.React.DecisioningAgent (Mojentic v1.2.0)

Copy Markdown View Source

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.

Summary

Functions

Receives and processes an InvokeDecisioning event.

Functions

receive_event_async(broker, event)

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