pub struct ResponsesRequestConfig<'a> {
pub model_name: &'a str,
pub messages: &'a Messages,
pub tool_declarations: Option<&'a dyn ToolDeclarations>,
pub extra_tool_declarations: &'a [Value],
pub reasoning_effort: Option<String>,
pub options: Option<&'a ChatOptions>,
pub output_shape: Option<&'a Schema>,
pub previous_response_id: Option<String>,
pub store: Option<bool>,
}Fields§
§model_name: &'a str§messages: &'a Messages§tool_declarations: Option<&'a dyn ToolDeclarations>Tool declarations view from Chat. The builder calls .json()
on it to obtain the JSON array of function decls.
extra_tool_declarations: &'a [Value]Pre-materialized provider-specific tool declarations (e.g.
OpenAI’s web_search, image_generation). The wire layer
drops these into tools[] opaquely.
reasoning_effort: Option<String>§options: Option<&'a ChatOptions>§output_shape: Option<&'a Schema>§previous_response_id: Option<String>§store: Option<bool>Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ResponsesRequestConfig<'a>
impl<'a> !UnwindSafe for ResponsesRequestConfig<'a>
impl<'a> Freeze for ResponsesRequestConfig<'a>
impl<'a> Send for ResponsesRequestConfig<'a>
impl<'a> Sync for ResponsesRequestConfig<'a>
impl<'a> Unpin for ResponsesRequestConfig<'a>
impl<'a> UnsafeUnpin for ResponsesRequestConfig<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more