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

Copy Markdown View Source

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.

Summary

Functions

Receives and processes an InvokeThinking event.

Functions

receive_event_async(broker, event)

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