# OmitFromSchema

> **Class** in `langchain`

📖 [View in docs](https://reference.langchain.com/python/langchain/agents/middleware/types/OmitFromSchema)

Annotation used to mark state attributes as omitted from input or output schemas.

## Signature

```python
OmitFromSchema(
    self,
    input: bool = True,
    output: bool = True,
)
```

## Constructors

```python
__init__(
    self,
    input: bool = True,
    output: bool = True,
) -> None
```

| Name | Type |
|------|------|
| `input` | `bool` |
| `output` | `bool` |


## Properties

- `input`
- `output`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/langchain_v1/langchain/agents/middleware/types.py#L329)