pub struct GoogleCloudAiplatformV1Tool {
pub google_search_retrieval: Option<GoogleCloudAiplatformV1GoogleSearchRetrieval>,
pub retrieval: Option<GoogleCloudAiplatformV1Retrieval>,
pub function_declarations: Option<Vec<GoogleCloudAiplatformV1FunctionDeclaration>>,
}Expand description
Tool details that the model may use to generate response. A Tool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
This type is not used in any activity, and only used as part of another schema.
Fields§
§google_search_retrieval: Option<GoogleCloudAiplatformV1GoogleSearchRetrieval>Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search.
retrieval: Option<GoogleCloudAiplatformV1Retrieval>Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
function_declarations: Option<Vec<GoogleCloudAiplatformV1FunctionDeclaration>>Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1Tool
impl Clone for GoogleCloudAiplatformV1Tool
Source§fn clone(&self) -> GoogleCloudAiplatformV1Tool
fn clone(&self) -> GoogleCloudAiplatformV1Tool
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GoogleCloudAiplatformV1Tool
impl Debug for GoogleCloudAiplatformV1Tool
Source§impl Default for GoogleCloudAiplatformV1Tool
impl Default for GoogleCloudAiplatformV1Tool
Source§fn default() -> GoogleCloudAiplatformV1Tool
fn default() -> GoogleCloudAiplatformV1Tool
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1Tool
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1Tool
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>,
impl Part for GoogleCloudAiplatformV1Tool
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1Tool
impl RefUnwindSafe for GoogleCloudAiplatformV1Tool
impl Send for GoogleCloudAiplatformV1Tool
impl Sync for GoogleCloudAiplatformV1Tool
impl Unpin for GoogleCloudAiplatformV1Tool
impl UnwindSafe for GoogleCloudAiplatformV1Tool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more