> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/guardrails/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/guardrails/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/guardrails/_mcp/server.

# nemoguardrails.library.gliner.models

Pydantic models for GLiNER requests and responses.

## Module Contents

### Classes

| Name                                                                     | Description                                                  |
| ------------------------------------------------------------------------ | ------------------------------------------------------------ |
| [`EntitySpan`](#nemoguardrails-library-gliner-models-EntitySpan)         | Represents a detected entity with its position and metadata. |
| [`GLiNERRequest`](#nemoguardrails-library-gliner-models-GLiNERRequest)   | Request model for GLiNER entity extraction.                  |
| [`GLiNERResponse`](#nemoguardrails-library-gliner-models-GLiNERResponse) | Response model for GLiNER entity extraction.                 |

### API

```python
class nemoguardrails.library.gliner.models.EntitySpan()
```

**Bases:** `BaseModel`

Represents a detected entity with its position and metadata.

```python
class nemoguardrails.library.gliner.models.GLiNERRequest()
```

**Bases:** `BaseModel`

Request model for GLiNER entity extraction.

This model defines the parameters for making requests to a GLiNER server.
Default values are centralized here to avoid duplication.

```python
class nemoguardrails.library.gliner.models.GLiNERResponse()
```

**Bases:** `BaseModel`

Response model for GLiNER entity extraction.