Jidoka.Turn.Result (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Final app-facing result of one Jidoka turn.

Summary

Types

t()

@type t() :: %Jidoka.Turn.Result{
  agent_state: term(),
  content: binary(),
  events: [term()],
  journal: term(),
  metadata: map(),
  usage: map(),
  value: nil | nil | any()
}

Functions

from_turn_state!(state)

@spec from_turn_state!(Jidoka.Turn.State.t()) :: t()

new(attrs)

@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}

new!(attrs)

@spec new!(keyword() | map()) :: t()

schema()

@spec schema() :: Zoi.schema()