Skip to navigation

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

View as MarkdownOpen in Claude

Guarded text bindings for OpenAI Chat Completions requests.

Module Contents

Classes

NameDescription
ChatCompletionsGuardedRequestBind the handwritten projection to its guarded runtime semantics.

Data

CAPABILITY_PROFILE

GUARDED_TEXT_LOCATION

PAYLOAD_CONTRACT

REQUEST_CONSTRAINED_FIELDS

REQUEST_CONTENT_SCHEMAS

REQUEST_GUARDED_FIELDS

REQUEST_OPAQUE_FIELDS

REQUEST_SOURCE_SCHEMA

STREAM_SELECTOR_FIELD

API

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

Bases: ChatCompletionsGuardedRequestProjection

Bind the handwritten projection to its guarded runtime semantics.

nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.CAPABILITY_PROFILE = 'single_text.v1'
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.GUARDED_TEXT_LOCATION = text_location(ChatCompletionsGuardedRequestProjection)
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.PAYLOAD_CONTRACT = payload_contract(ChatCompletionsGuardedRequestProjection, projection_id='openai....
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.REQUEST_CONSTRAINED_FIELDS = PAYLOAD_CONTRACT.root.constrained_fields
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.REQUEST_CONTENT_SCHEMAS = tuple((entry.source_schema, entry.coverage.reviewed_fields - entry.coverage.loca...
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.REQUEST_GUARDED_FIELDS = PAYLOAD_CONTRACT.root.guarded_fields
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.REQUEST_OPAQUE_FIELDS = PAYLOAD_CONTRACT.root.opaque_fields
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.REQUEST_SOURCE_SCHEMA = 'CreateChatCompletionRequest'
nemoguardrails.server.experimental.providers.openai.chat_completions.request_binding.STREAM_SELECTOR_FIELD = 'stream'