#[non_exhaustive]pub enum Data {
Text(String),
InlineData(Box<Blob>),
FileData(Box<FileData>),
FunctionCall(Box<FunctionCall>),
FunctionResponse(Box<FunctionResponse>),
ExecutableCode(Box<ExecutableCode>),
CodeExecutionResult(Box<CodeExecutionResult>),
}Available on crate features
data-foundry-service or gen-ai-cache-service or gen-ai-tuning-service or llm-utility-service or prediction-service or vertex-rag-service only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(String)
Optional. Text part (can be code).
InlineData(Box<Blob>)
Optional. Inlined bytes data.
FileData(Box<FileData>)
Optional. URI based data.
FunctionCall(Box<FunctionCall>)
Optional. A predicted FunctionCall returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values.
FunctionResponse(Box<FunctionResponse>)
Optional. The result output of a FunctionCall that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model.
ExecutableCode(Box<ExecutableCode>)
Optional. Code generated by the model that is meant to be executed.
CodeExecutionResult(Box<CodeExecutionResult>)
Optional. Result of executing the ExecutableCode.
Trait Implementations§
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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