pub enum ContentPartDoc {
Text {
text: String,
provider_options: Option<ContentPartProviderOptionsDoc>,
},
Image {
url: String,
detail: Option<ImageDetailDoc>,
provider_options: Option<ContentPartProviderOptionsDoc>,
},
ToolCall {
id: String,
name: String,
arguments: Value,
provider_options: Option<ContentPartProviderOptionsDoc>,
metadata: Option<Value>,
},
ToolResult {
tool_call_id: String,
content: Value,
provider_options: Option<ContentPartProviderOptionsDoc>,
},
}Variants§
Text
Image
ToolCall
Fields
§
provider_options: Option<ContentPartProviderOptionsDoc>ToolResult
Trait Implementations§
Source§impl ComposeSchema for ContentPartDoc
impl ComposeSchema for ContentPartDoc
Source§impl Debug for ContentPartDoc
impl Debug for ContentPartDoc
Source§impl<'de> Deserialize<'de> for ContentPartDoc
impl<'de> Deserialize<'de> for ContentPartDoc
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
Source§impl Serialize for ContentPartDoc
impl Serialize for ContentPartDoc
Auto Trait Implementations§
impl Freeze for ContentPartDoc
impl RefUnwindSafe for ContentPartDoc
impl Send for ContentPartDoc
impl Sync for ContentPartDoc
impl Unpin for ContentPartDoc
impl UnsafeUnpin for ContentPartDoc
impl UnwindSafe for ContentPartDoc
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request