AshAi.Actions.Prompt.FlowState (ash_ai v0.6.1)

Copy Markdown View Source

Internal ReqLLM-native flow state for prompt actions.

This state is the canonical representation used by prompt action execution and powers transform_flow customizations.

Summary

Types

t()

@type t() :: %AshAi.Actions.Prompt.FlowState{
  actor: term(),
  extra_tools: list(),
  max_iterations: :infinity | pos_integer(),
  messages: list(),
  model: term(),
  on_tool_end: (term() -> term()) | nil,
  on_tool_start: (term() -> term()) | nil,
  req_llm: module(),
  req_llm_opts: Keyword.t(),
  source_context: map(),
  strict: boolean(),
  tenant: term(),
  tool_selection: false | true | [atom()],
  verbose?: boolean()
}