nemoguardrails.server.experimental.providers.openai.dialects.litellm.chat_completions
nemoguardrails.server.experimental.providers.openai.dialects.litellm.chat_completions
Bind LiteLLM Chat extensions to the single-text OpenAI pipeline.
Reviewed finish metadata is opaque; extension containers remain closed to unreviewed content. See README.md for source/version evidence and field policy.
The OpenAI request binding and stream lifecycle hooks are reused. Python declarations are authoritative; the exported contract describes these effective bindings and is never loaded to construct them. No LiteLLM dependency is needed at runtime.
Module Contents
Classes
Data
LITELLM_CHAT_COMPLETIONS_ENDPOINT
API
Bases: ChatCompletionsAssistantMessageProjection
Add a closed message extension without changing the guarded text target.
Bases: ChatCompletionsChoiceProjection
Rebind the message type and constrain the provider-specific choice object.
Bases: LiteLLMResponseProjection
Derive coverage and text extraction from the complete dialect model graph.
Bases: PolicyModel
Allow the recorded null refusal without accepting uninspected content.
Bases: ChatCompletionsGuardedResponseProjection
Retain the single-text response boundary with the reviewed nested types.