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

Data description of an external effect the runtime may interpret.

# `kind`

```elixir
@type kind() :: :llm | :operation
```

# `t`

```elixir
@type t() :: %Jidoka.Effect.Intent{
  id: binary(),
  idempotency: (((:pure | :idempotent) | :dedupe) | :reconcile) | :unsafe_once,
  idempotency_key: binary(),
  kind: :llm | :operation,
  metadata: map(),
  payload: map()
}
```

# `new`

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

Builds an effect intent from keyword or map attributes.

# `new`

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

Builds a validated effect intent for a kind and payload.

# `new!`

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

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

# `schema`

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

Returns the Zoi schema for an effect intent.

---

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