pub struct AnalyzeRequest {
pub prompt: String,
pub data_json: String,
pub images: Vec<ImagePart>,
pub schema: Schema,
pub tools: Vec<ToolSpec>,
pub tool_history: Vec<ToolExchange>,
}Fields§
§prompt: StringThe user’s natural-language instruction.
data_json: StringThe input data serialized as JSON text.
images: Vec<ImagePart>Images accompanying the data, in the order the program listed them.
Text and pixels travel together in one request: a receipt is not a JSON blob with a picture attached, it is the picture, and splitting them into two calls loses the association the model needs.
schema: Schema§tools: Vec<ToolSpec>Tools the model may call before producing its final answer.
tool_history: Vec<ToolExchange>Results of tool calls already performed, appended to the conversation as the loop progresses.
Trait Implementations§
Source§impl Clone for AnalyzeRequest
impl Clone for AnalyzeRequest
Source§fn clone(&self) -> AnalyzeRequest
fn clone(&self) -> AnalyzeRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for AnalyzeRequest
impl !Sync for AnalyzeRequest
impl Freeze for AnalyzeRequest
impl RefUnwindSafe for AnalyzeRequest
impl Unpin for AnalyzeRequest
impl UnsafeUnpin for AnalyzeRequest
impl UnwindSafe for AnalyzeRequest
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