> This page is for version v0.25.0.
> For other versions, use one of these documentation indexes:
> - Latest (default): https://docs.nvidia.com/nemo/guardrails/latest/llms.txt
> - v0.25.0: https://docs.nvidia.com/nemo/guardrails/v0.25.0/llms.txt
> - v0.24.1: https://docs.nvidia.com/nemo/guardrails/v0.24.1/llms.txt
> - v0.24.0: https://docs.nvidia.com/nemo/guardrails/v0.24.0/llms.txt
> - v0.23.0: https://docs.nvidia.com/nemo/guardrails/v0.23.0/llms.txt
> - v0.22.0: https://docs.nvidia.com/nemo/guardrails/v0.22.0/llms.txt

> 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.

# nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding

Guarded text bindings for OpenAI Chat Completions requests.

## Module Contents

### Classes

| Name                                                                                                                                                   | Description                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| [`ChatCompletionsGuardedRequest`](#nemoguardrails-server-experimental-providers-openai-chat_completions-request_binding-ChatCompletionsGuardedRequest) | Bind the handwritten projection to its guarded runtime semantics. |

### Data

[`CAPABILITY_PROFILE`](#nemoguardrails-server-experimental-providers-openai-chat_completions-request_binding-CAPABILITY_PROFILE)

[`GUARDED_TEXT_LOCATION`](#nemoguardrails-server-experimental-providers-openai-chat_completions-request_binding-GUARDED_TEXT_LOCATION)

[`PAYLOAD_CONTRACT`](#nemoguardrails-server-experimental-providers-openai-chat_completions-request_binding-PAYLOAD_CONTRACT)

[`REQUEST_CONSTRAINED_FIELDS`](#nemoguardrails-server-experimental-providers-openai-chat_completions-request_binding-REQUEST_CONSTRAINED_FIELDS)

[`REQUEST_CONTENT_SCHEMAS`](#nemoguardrails-server-experimental-providers-openai-chat_completions-request_binding-REQUEST_CONTENT_SCHEMAS)

[`REQUEST_GUARDED_FIELDS`](#nemoguardrails-server-experimental-providers-openai-chat_completions-request_binding-REQUEST_GUARDED_FIELDS)

[`REQUEST_OPAQUE_FIELDS`](#nemoguardrails-server-experimental-providers-openai-chat_completions-request_binding-REQUEST_OPAQUE_FIELDS)

[`REQUEST_SOURCE_SCHEMA`](#nemoguardrails-server-experimental-providers-openai-chat_completions-request_binding-REQUEST_SOURCE_SCHEMA)

[`STREAM_SELECTOR_FIELD`](#nemoguardrails-server-experimental-providers-openai-chat_completions-request_binding-STREAM_SELECTOR_FIELD)

### API

```python
class nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.ChatCompletionsGuardedRequest()
```

**Bases:** [ChatCompletionsGuardedRequestProjection](/nemo/guardrails/v0.25.0/guardrails-python-sdk/nemoguardrails/server/experimental/providers/openai/chat_completions/request_projection#nemoguardrails-server-experimental-providers-openai-chat_completions-request_projection-ChatCompletionsGuardedRequestProjection)

Bind the handwritten projection to its guarded runtime semantics.

```python
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.CAPABILITY_PROFILE = 'single_text.v1'
```

```python
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.GUARDED_TEXT_LOCATION = text_location(ChatCompletionsGuardedRequestProjection)
```

```python
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.PAYLOAD_CONTRACT = payload_contract(ChatCompletionsGuardedRequestProjection, projection_id='openai....
```

```python
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.REQUEST_CONSTRAINED_FIELDS = PAYLOAD_CONTRACT.root.constrained_fields
```

```python
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.REQUEST_CONTENT_SCHEMAS = tuple((entry.source_schema, entry.coverage.reviewed_fields - entry.coverage.loca...
```

```python
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.REQUEST_GUARDED_FIELDS = PAYLOAD_CONTRACT.root.guarded_fields
```

```python
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.REQUEST_OPAQUE_FIELDS = PAYLOAD_CONTRACT.root.opaque_fields
```

```python
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.REQUEST_SOURCE_SCHEMA = 'CreateChatCompletionRequest'
```

```python
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.STREAM_SELECTOR_FIELD = 'stream'
```