pub struct CompletionResponse {
pub choice: Vec<AssistantContent>,
pub origin: Option<Origin>,
pub finish_reason: FinishReason,
pub usage: TokenUsage,
pub selected_model: Option<String>,
}Fields§
§choice: Vec<AssistantContent>§origin: Option<Origin>§finish_reason: FinishReason§usage: TokenUsage§selected_model: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for CompletionResponse
impl Clone for CompletionResponse
Source§impl Debug for CompletionResponse
impl Debug for CompletionResponse
Source§impl<'de> Deserialize<'de> for CompletionResponse
impl<'de> Deserialize<'de> for CompletionResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for CompletionResponse
impl Freeze for CompletionResponsewhere
*const u8 is !null: Freeze,
PhantomData<AssistantContent>: Freeze,
&'static str: Freeze,
String: Freeze,
PhantomData<u8>: Freeze,
impl Move for CompletionResponse
impl RefUnwindSafe for CompletionResponsewhere
String: RefUnwindSafe,
impl Send for CompletionResponse
impl Sync for CompletionResponse
impl Unpin for CompletionResponse
impl UnsafeUnpin for CompletionResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<AssistantContent>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for CompletionResponsewhere
RawVecInner: UnwindSafe,
NonNull<u8>: UnwindSafe,
&'static str: UnwindSafe,
String: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.