pub struct ClaudeResponseContext {
pub request: GenerateContentRequestBody,
pub effective_parallel_tool_calls: bool,
pub effective_tool_choice: ToolChoice,
pub usage: ResponsesUsageFacts,
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 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: ResponsesUsageFacts§created_at: i64Actual creation timestamp of this invocation. Claude has no body field.
effective_prompt_cache_options: Option<ResponsePromptCacheOptions>Trait Implementations§
Source§impl Debug for ClaudeResponseContext
impl Debug for ClaudeResponseContext
Source§impl From<ClaudeResponseContext> for ClaudeToResponsesContext
impl From<ClaudeResponseContext> for ClaudeToResponsesContext
Source§fn from(response: ClaudeResponseContext) -> Self
fn from(response: ClaudeResponseContext) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClaudeResponseContext
impl RefUnwindSafe for ClaudeResponseContext
impl Send for ClaudeResponseContext
impl Sync for ClaudeResponseContext
impl Unpin for ClaudeResponseContext
impl UnsafeUnpin for ClaudeResponseContext
impl UnwindSafe for ClaudeResponseContext
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