# ByAgent

> **Class** in `langgraph_cli`

📖 [View in docs](https://reference.langchain.com/python/langgraph-cli/deploy/ByAgent)

## Signature

```python
ByAgent(
    self,
    agent_id: str,
    environment: str,
)
```

## Constructors

```python
__init__(
    self,
    agent_id: str,
    environment: str,
) -> None
```

| Name | Type |
|------|------|
| `agent_id` | `str` |
| `environment` | `str` |


## Properties

- `agent_id`
- `environment`

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/e5b422455d9304e8a655c90d46133cf78ec25fa1/libs/cli/langgraph_cli/deploy.py#L156)