# 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/42f8f79293cfb7589e5bc1d74a8ae4dfd0bf15e3/libs/langchain_v1/langchain/agents/middleware/types.py#L326)