# `Raxol.AgentClientProtocol.Schema.AgentTypes.NewSessionResponse`
[🔗](https://github.com/DROOdotFOO/raxol-agent/blob/raxol_agent_client_protocol-v0.1.0/packages/raxol_agent_client_protocol/lib/raxol/agent_client_protocol/schema/agent_types.ex#L688)

The `session/new` response: the new session id plus optional mode/model/
config-option state (the latter two are unstable extensions).

Ported from the MIT `f1729/agent_client_protocol` (c) 2025 f1729; see NOTICE.md.

# `t`

```elixir
@type t() :: %Raxol.AgentClientProtocol.Schema.AgentTypes.NewSessionResponse{
  _meta: map(),
  config_options:
    [Raxol.AgentClientProtocol.Schema.Unstable.SessionConfigOption.t()] | nil,
  models: Raxol.AgentClientProtocol.Schema.Unstable.SessionModelState.t() | nil,
  modes: Raxol.AgentClientProtocol.Schema.AgentTypes.SessionModeState.t() | nil,
  session_id: String.t()
}
```

# `from_json`

```elixir
@spec from_json(term()) :: {:ok, t()} | {:error, term()}
```

# `new`

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

# `to_json`

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

---

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