# `Jidoka.Effect.Result`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/effect/result.ex#L1)

Normalized result of an interpreted effect.

# `t`

```elixir
@type t() :: %Jidoka.Effect.Result{
  intent_id: binary(),
  kind: :llm | :operation,
  metadata: map(),
  output: any(),
  status: :ok | :error
}
```

# `error`

```elixir
@spec error(Jidoka.Effect.Intent.t(), term(), keyword()) :: t()
```

Builds a failed result for an effect intent.

# `new`

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

Builds an effect result from keyword or map attributes.

# `new!`

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

Builds an effect result and raises if the attributes are invalid.

# `ok`

```elixir
@spec ok(Jidoka.Effect.Intent.t(), term(), keyword()) :: t()
```

Builds a successful result for an effect intent.

# `schema`

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

Returns the Zoi schema for an interpreted effect result.

---

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