pub struct GoogleCloudAiplatformV1FunctionDeclaration {
pub description: Option<String>,
pub parameters: Option<GoogleCloudAiplatformV1Schema>,
pub name: Option<String>,
}Expand description
Structured representation of a function declaration as defined by the OpenAPI 3.0 specification. Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a Tool by the model and executed by the client.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<String>Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
parameters: Option<GoogleCloudAiplatformV1Schema>Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
name: Option<String>Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1FunctionDeclaration
impl Clone for GoogleCloudAiplatformV1FunctionDeclaration
Source§fn clone(&self) -> GoogleCloudAiplatformV1FunctionDeclaration
fn clone(&self) -> GoogleCloudAiplatformV1FunctionDeclaration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudAiplatformV1FunctionDeclaration
impl Default for GoogleCloudAiplatformV1FunctionDeclaration
Source§fn default() -> GoogleCloudAiplatformV1FunctionDeclaration
fn default() -> GoogleCloudAiplatformV1FunctionDeclaration
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1FunctionDeclaration
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1FunctionDeclaration
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 GoogleCloudAiplatformV1FunctionDeclaration
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1FunctionDeclaration
impl RefUnwindSafe for GoogleCloudAiplatformV1FunctionDeclaration
impl Send for GoogleCloudAiplatformV1FunctionDeclaration
impl Sync for GoogleCloudAiplatformV1FunctionDeclaration
impl Unpin for GoogleCloudAiplatformV1FunctionDeclaration
impl UnwindSafe for GoogleCloudAiplatformV1FunctionDeclaration
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