pub struct Part {
pub text: Option<String>,
pub thought: Option<bool>,
pub thought_signature: Option<String>,
pub function_call: Option<FunctionCall>,
pub inline_data: Option<InlineData>,
pub executable_code: Option<ExecutableCode>,
pub code_execution_result: Option<CodeExecutionResult>,
pub tool_call: Option<ServerToolCall>,
pub tool_response: Option<JsonValue>,
}Expand description
A content part.
Fields§
§text: Option<String>Text.
thought: Option<bool>Whether the part is a thought summary.
thought_signature: Option<String>Thought signature to send back with the part.
function_call: Option<FunctionCall>Function call.
inline_data: Option<InlineData>Inline binary data.
executable_code: Option<ExecutableCode>Code produced by the code execution tool.
code_execution_result: Option<CodeExecutionResult>Result of the code execution tool.
tool_call: Option<ServerToolCall>Server-side tool call.
tool_response: Option<JsonValue>Server-side tool response (opaque).
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 UnsafeUnpin 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