# `Jidoka.Eval.Case`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/eval/case.ex#L1)

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.

# `t`

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

# `from_input`

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

Normalizes an existing evaluation case, keyword list, or map.

# `new`

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

Builds an evaluation case and validates its optional matcher.

# `new!`

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

Builds an evaluation case and raises if the attributes are invalid.

# `schema`

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

Returns the Zoi schema for an evaluation case.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
