pub struct ResponsesResponseContext {
pub request: GenerateContentRequestBody,
pub effective_parallel_tool_calls: bool,
pub effective_tool_choice: ToolChoice,
pub usage: ChatUsageSupplement,
pub effective_prompt_cache_options: Option<ResponsePromptCacheOptions>,
}Expand description
The original Responses request and effective settings retained during request preparation. Required settings must come from that invocation, not guesses made after receiving a Chat completion. A response conversion consumes this value and recursively removes extensions before reusing same-dialect fields.
Fields§
§request: GenerateContentRequestBody§effective_parallel_tool_calls: bool§effective_tool_choice: ToolChoice§usage: ChatUsageSupplement§effective_prompt_cache_options: Option<ResponsePromptCacheOptions>Trait Implementations§
Source§impl Debug for ResponsesResponseContext
impl Debug for ResponsesResponseContext
Source§impl From<ResponsesResponseContext> for ChatToResponsesContext
impl From<ResponsesResponseContext> for ChatToResponsesContext
Source§fn from(response: ResponsesResponseContext) -> Self
fn from(response: ResponsesResponseContext) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponsesResponseContext
impl RefUnwindSafe for ResponsesResponseContext
impl Send for ResponsesResponseContext
impl Sync for ResponsesResponseContext
impl Unpin for ResponsesResponseContext
impl UnsafeUnpin for ResponsesResponseContext
impl UnwindSafe for ResponsesResponseContext
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