# AgentSessionContext

> **Class** in `deepagents_acp`

📖 [View in docs](https://reference.langchain.com/python/deepagents-acp/server/AgentSessionContext)

Context for an agent session, including working directory, mode, and model.

## Signature

```python
AgentSessionContext(
    self,
    cwd: str,
    mode: str,
    model: str | None = None,
)
```

## Constructors

```python
__init__(
    self,
    cwd: str,
    mode: str,
    model: str | None = None,
) -> None
```

| Name | Type |
|------|------|
| `cwd` | `str` |
| `mode` | `str` |
| `model` | `str \| None` |


## Properties

- `cwd`
- `mode`
- `model`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/829909166606f8a9d9571b00da725845bad08da7/libs/acp/deepagents_acp/server.py#L77)