pub struct GeminiResponseContext {
pub request: GenerateContentRequestBody,
pub effective_parallel_tool_calls: bool,
pub effective_tool_choice: ToolChoice,
pub usage: GeminiUsageFacts,
pub created_at: i64,
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 Gemini result. 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: GeminiUsageFacts§created_at: i64Actual creation timestamp of this invocation. Gemini has no creation timestamp field.
effective_prompt_cache_options: Option<ResponsePromptCacheOptions>Trait Implementations§
Auto Trait Implementations§
impl Freeze for GeminiResponseContext
impl RefUnwindSafe for GeminiResponseContext
impl Send for GeminiResponseContext
impl Sync for GeminiResponseContext
impl Unpin for GeminiResponseContext
impl UnsafeUnpin for GeminiResponseContext
impl UnwindSafe for GeminiResponseContext
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