# `Jido.Composer.NodeIO`
[🔗](https://github.com/lostbean/jido_composer/blob/main/lib/jido/composer/node_io.ex#L1)

Typed envelope for node output.

Wraps node results with type metadata (`:map`, `:text`, or `:object`)
while preserving the monoidal map structure via `to_map/1`.

## Types

- `:map` — a plain map, passes through `to_map/1` unchanged
- `:text` — a string, wrapped as `%{text: value}` by `to_map/1`
- `:object` — a structured object with optional schema, wrapped as `%{object: value}`

# `io_type`

```elixir
@type io_type() :: :map | :text | :object
```

# `t`

```elixir
@type t() :: %Jido.Composer.NodeIO{
  meta: map(),
  schema: map() | nil,
  type: io_type(),
  value: term()
}
```

# `map`

```elixir
@spec map(map()) :: t()
```

# `mergeable?`

```elixir
@spec mergeable?(t()) :: boolean()
```

# `object`

```elixir
@spec object(map(), map() | nil) :: t()
```

# `text`

```elixir
@spec text(String.t()) :: t()
```

# `to_map`

```elixir
@spec to_map(t()) :: map()
```

# `unwrap`

```elixir
@spec unwrap(t()) :: term()
```

---

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