# `AgentBlueprintProtocol.BoundsAlgebra.BoundSet`
[🔗](https://github.com/baselabs/agent_blueprint_protocol/blob/v1.1.0/lib/agent_blueprint_protocol/bounds_algebra.ex#L88)

This struct represents a set of named bounds.

Use it when constructing or inspecting bound sources for intersection.

This module does not authorize operations.

## Example

```elixir
AgentBlueprintProtocol.BoundsAlgebra.BoundSet.new(%{max_tokens: 1000})
```

# `t`
*since 1.0.0* 

```elixir
@type t() :: %AgentBlueprintProtocol.BoundsAlgebra.BoundSet{
  bounds: %{optional(atom()) =&gt; AgentBlueprintProtocol.BoundsAlgebra.Bound.t()}
}
```

The public data type for AgentBlueprintProtocol.BoundsAlgebra.BoundSet.

# `names`
*since 1.0.0* 

```elixir
@spec names() :: [atom()]
```

Returns the names of the supported bounds.

## Example

```elixir
AgentBlueprintProtocol.BoundsAlgebra.BoundSet.names()
```

# `new`
*since 1.0.0* 

```elixir
@spec new(%{optional(atom()) =&gt; term()}) ::
  {:ok, t()} | {:error, AgentBlueprintProtocol.Error.t()}
```

Builds and validates a value from the supplied options.

## Example

```elixir
AgentBlueprintProtocol.BoundsAlgebra.BoundSet.new(%{max_tokens: 1000})
```

# `to_map`
*since 1.0.0* 

```elixir
@spec to_map(t()) ::
  {:ok, %{optional(atom()) =&gt; term()}}
  | {:error, AgentBlueprintProtocol.Error.t()}
```

Returns the raw values stored in a bound set.

## Example

```elixir
{:ok, bounds} =
  AgentBlueprintProtocol.BoundsAlgebra.BoundSet.new(%{max_tokens: 1000})

AgentBlueprintProtocol.BoundsAlgebra.BoundSet.to_map(bounds)
```

---

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