Mojentic.Examples.React.Models.CurrentContext (Mojentic v1.2.0)

Copy Markdown View Source

The complete context for a ReAct session.

This model tracks everything needed to maintain state throughout the reasoning and acting loop, including the user's query, the plan, the history of actions, and the iteration count.

Summary

Functions

Creates a new CurrentContext with the given user query.

Types

t()

@type t() :: %Mojentic.Examples.React.Models.CurrentContext{
  history: [Mojentic.Examples.React.Models.ThoughtActionObservation.t()],
  iteration: non_neg_integer(),
  plan: Mojentic.Examples.React.Models.Plan.t(),
  user_query: String.t()
}

Functions

new(user_query, opts \\ [])

Creates a new CurrentContext with the given user query.