Jidoka.Effect.OperationResult (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Durable operation observation stored on agent state.

This is separate from Jidoka.Effect.Result: the effect result records interpreter status, while operation result records the semantic tool observation that should survive across later turns.

Summary

Types

t()

@type t() :: %Jidoka.Effect.OperationResult{
  arguments: map(),
  content: nil | nil | binary(),
  effect_id: nil | nil | binary(),
  loop_index: integer(),
  metadata: map(),
  operation: binary(),
  output: any(),
  request_id: nil | nil | binary()
}

Functions

from_effect(intent, output)

@spec from_effect(Jidoka.Effect.Intent.t(), term()) :: {:ok, t()} | {:error, term()}

from_input(result)

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

new(attrs)

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

new!(attrs)

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

schema()

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

to_message(result)

@spec to_message(t()) :: Jidoka.Agent.Message.t()