#[non_exhaustive]pub struct ReasoningEngineSpec {
pub service_account: Option<String>,
pub package_spec: Option<PackageSpec>,
pub deployment_spec: Option<DeploymentSpec>,
pub class_methods: Vec<Struct>,
pub agent_framework: String,
pub deployment_source: Option<DeploymentSource>,
/* private fields */
}reasoning-engine-service only.Expand description
ReasoningEngine configurations
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.service_account: Option<String>Optional. The service account that the Reasoning Engine artifact runs as. It should have “roles/storage.objectViewer” for reading the user project’s Cloud Storage and “roles/aiplatform.user” for using Vertex extensions. If not specified, the Vertex AI Reasoning Engine Service Agent in the project will be used.
package_spec: Option<PackageSpec>Optional. User provided package spec of the ReasoningEngine.
Ignored when users directly specify a deployment image through
deployment_spec.first_party_image_override, but keeping the
field_behavior to avoid introducing breaking changes.
The deployment_source field should not be set if package_spec is
specified.
deployment_spec: Option<DeploymentSpec>Optional. The specification of a Reasoning Engine deployment.
class_methods: Vec<Struct>Optional. Declarations for object class methods in OpenAPI specification format.
agent_framework: StringOptional. The OSS agent framework used to develop the agent. Currently supported values: “google-adk”, “langchain”, “langgraph”, “ag2”, “llama-index”, “custom”.
deployment_source: Option<DeploymentSource>Defines the source for the deployment.
The package_spec field should not be set if deployment_source is
specified.
Implementations§
Source§impl ReasoningEngineSpec
impl ReasoningEngineSpec
pub fn new() -> Self
Sourcepub fn set_service_account<T>(self, v: T) -> Self
pub fn set_service_account<T>(self, v: T) -> Self
Sets the value of service_account.
§Example
let x = ReasoningEngineSpec::new().set_service_account("example");Sourcepub fn set_or_clear_service_account<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_service_account<T>(self, v: Option<T>) -> Self
Sets or clears the value of service_account.
§Example
let x = ReasoningEngineSpec::new().set_or_clear_service_account(Some("example"));
let x = ReasoningEngineSpec::new().set_or_clear_service_account(None::<String>);Sourcepub fn set_package_spec<T>(self, v: T) -> Selfwhere
T: Into<PackageSpec>,
pub fn set_package_spec<T>(self, v: T) -> Selfwhere
T: Into<PackageSpec>,
Sets the value of package_spec.
§Example
use google_cloud_aiplatform_v1::model::reasoning_engine_spec::PackageSpec;
let x = ReasoningEngineSpec::new().set_package_spec(PackageSpec::default()/* use setters */);Sourcepub fn set_or_clear_package_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<PackageSpec>,
pub fn set_or_clear_package_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<PackageSpec>,
Sets or clears the value of package_spec.
§Example
use google_cloud_aiplatform_v1::model::reasoning_engine_spec::PackageSpec;
let x = ReasoningEngineSpec::new().set_or_clear_package_spec(Some(PackageSpec::default()/* use setters */));
let x = ReasoningEngineSpec::new().set_or_clear_package_spec(None::<PackageSpec>);Sourcepub fn set_deployment_spec<T>(self, v: T) -> Selfwhere
T: Into<DeploymentSpec>,
pub fn set_deployment_spec<T>(self, v: T) -> Selfwhere
T: Into<DeploymentSpec>,
Sets the value of deployment_spec.
§Example
use google_cloud_aiplatform_v1::model::reasoning_engine_spec::DeploymentSpec;
let x = ReasoningEngineSpec::new().set_deployment_spec(DeploymentSpec::default()/* use setters */);Sourcepub fn set_or_clear_deployment_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeploymentSpec>,
pub fn set_or_clear_deployment_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeploymentSpec>,
Sets or clears the value of deployment_spec.
§Example
use google_cloud_aiplatform_v1::model::reasoning_engine_spec::DeploymentSpec;
let x = ReasoningEngineSpec::new().set_or_clear_deployment_spec(Some(DeploymentSpec::default()/* use setters */));
let x = ReasoningEngineSpec::new().set_or_clear_deployment_spec(None::<DeploymentSpec>);Sourcepub fn set_class_methods<T, V>(self, v: T) -> Self
pub fn set_class_methods<T, V>(self, v: T) -> Self
Sets the value of class_methods.
§Example
use wkt::Struct;
let x = ReasoningEngineSpec::new()
.set_class_methods([
Struct::default()/* use setters */,
Struct::default()/* use (different) setters */,
]);Sourcepub fn set_agent_framework<T: Into<String>>(self, v: T) -> Self
pub fn set_agent_framework<T: Into<String>>(self, v: T) -> Self
Sets the value of agent_framework.
§Example
let x = ReasoningEngineSpec::new().set_agent_framework("example");Sourcepub fn set_deployment_source<T: Into<Option<DeploymentSource>>>(
self,
v: T,
) -> Self
pub fn set_deployment_source<T: Into<Option<DeploymentSource>>>( self, v: T, ) -> Self
Sets the value of deployment_source.
Note that all the setters affecting deployment_source are mutually
exclusive.
§Example
use google_cloud_aiplatform_v1::model::reasoning_engine_spec::SourceCodeSpec;
let x = ReasoningEngineSpec::new().set_deployment_source(Some(
google_cloud_aiplatform_v1::model::reasoning_engine_spec::DeploymentSource::SourceCodeSpec(SourceCodeSpec::default().into())));Sourcepub fn source_code_spec(&self) -> Option<&Box<SourceCodeSpec>>
pub fn source_code_spec(&self) -> Option<&Box<SourceCodeSpec>>
The value of deployment_source
if it holds a SourceCodeSpec, None if the field is not set or
holds a different branch.
Sourcepub fn set_source_code_spec<T: Into<Box<SourceCodeSpec>>>(self, v: T) -> Self
pub fn set_source_code_spec<T: Into<Box<SourceCodeSpec>>>(self, v: T) -> Self
Sets the value of deployment_source
to hold a SourceCodeSpec.
Note that all the setters affecting deployment_source are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::reasoning_engine_spec::SourceCodeSpec;
let x = ReasoningEngineSpec::new().set_source_code_spec(SourceCodeSpec::default()/* use setters */);
assert!(x.source_code_spec().is_some());Trait Implementations§
Source§impl Clone for ReasoningEngineSpec
impl Clone for ReasoningEngineSpec
Source§fn clone(&self) -> ReasoningEngineSpec
fn clone(&self) -> ReasoningEngineSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more