pub enum Part {
Text {
text: String,
},
FunctionCall {
function_call: FunctionCall,
},
FunctionResponse {
function_response: FunctionResponse,
},
}
Expand description
Content part that can be included in a message
Variants§
Text
Text content
FunctionCall
Function call from the model
Fields
§
function_call: FunctionCall
The function call details
FunctionResponse
Function response (results from executing a function call)
Fields
§
function_response: FunctionResponse
The function response details
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Part
impl<'de> Deserialize<'de> for Part
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 Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnwindSafe for Part
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