# `Jidoka.Agent.Spec.Controls`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/agent/spec/controls.ex#L1)

Policy controls attached to a Jidoka agent definition.

# `t`

```elixir
@type t() :: %Jidoka.Agent.Spec.Controls{
  inputs: [term()],
  max_turns: nil | nil | integer(),
  metadata: map(),
  operations: [term()],
  outputs: [term()],
  timeout_ms: nil | nil | integer()
}
```

# `from_input`

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

Normalizes an existing control set, keyword list, or map.

# `new`

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

Builds an agent control set from keyword or map attributes.

# `new!`

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

Builds an agent control set and raises if the attributes are invalid.

# `schema`

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

Returns the Zoi schema for agent controls.

---

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