pub enum Part {
Text {
text: String,
thought: Option<bool>,
thought_signature: Option<String>,
},
InlineData {
inline_data: Blob,
media_resolution: Option<MediaResolution>,
},
FunctionCall {
function_call: FunctionCall,
thought_signature: Option<String>,
},
FunctionResponse {
function_response: FunctionResponse,
},
FileData {
file_data: FileData,
},
ExecutableCode {
executable_code: ExecutableCode,
},
CodeExecutionResult {
code_execution_result: CodeExecutionResult,
},
}Expand description
Core primitive types for building requests and parsing responses Content part that can be included in a message
Variants§
Text
Text content
Fields
InlineData
Fields
§
media_resolution: Option<MediaResolution>Per-part media resolution override. If specified, overrides the global media_resolution setting for this specific inline data.
FunctionCall
Function call from the model
Fields
§
function_call: FunctionCallThe function call details
FunctionResponse
Function response (results from executing a function call)
Fields
§
function_response: FunctionResponseThe function response details
FileData
File reference for previously uploaded files
ExecutableCode
Code generated by the model
Fields
§
executable_code: ExecutableCodeThe executable code details
CodeExecutionResult
Result of code execution
Fields
§
code_execution_result: CodeExecutionResultThe code execution result 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
impl StructuralPartialEq for Part
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