Skip to main content

ResponsesProviderExt

Trait ResponsesProviderExt 

Source
pub trait ResponsesProviderExt {
    // Required method
    fn system_instructions_placement(&self) -> SystemInstructionsPlacement;
}
Expand description

Provider extensions that drive the OpenAI Responses request conversion.

Implemented by the Ext type of a crate::client::Client used with [GenericResponsesCompletionModel], so a client-level configuration can control request shaping for every model created from that client.

Required Methods§

Source

fn system_instructions_placement(&self) -> SystemInstructionsPlacement

Where Rig system instructions are placed in requests built from this provider. See SystemInstructionsPlacement.

Deliberately has no default body: each provider must state its placement explicitly, so a backend that can’t handle the default (top-level instructions) is never inherited by accident.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§