Jidoka.Eval.Case (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Deterministic evaluation case for one Jidoka turn.

Eval cases are ordinary data: an agent spec, a turn request, and lightweight assertions that can run against fake or live capabilities supplied by the caller.

Summary

Types

t()

@type t() :: %Jidoka.Eval.Case{
  agent: term(),
  assertions: map(),
  id: binary(),
  metadata: map(),
  request: term()
}

Functions

from_input(input, opts \\ [])

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

new(attrs, opts \\ [])

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

new!(attrs, opts \\ [])

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

schema()

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