#[non_exhaustive]pub struct ReasoningEngineSpec {
pub package_spec: Option<PackageSpec>,
pub deployment_spec: Option<DeploymentSpec>,
pub class_methods: Vec<Struct>,
pub agent_framework: String,
/* private fields */
}Expand description
ReasoningEngine configurations
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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.
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: “langchain”, “langgraph”, “ag2”, “custom”.
Implementations§
Source§impl ReasoningEngineSpec
impl ReasoningEngineSpec
pub fn new() -> Self
Sourcepub fn set_package_spec<T: Into<Option<PackageSpec>>>(self, v: T) -> Self
pub fn set_package_spec<T: Into<Option<PackageSpec>>>(self, v: T) -> Self
Sets the value of package_spec.
Sourcepub fn set_deployment_spec<T: Into<Option<DeploymentSpec>>>(self, v: T) -> Self
pub fn set_deployment_spec<T: Into<Option<DeploymentSpec>>>(self, v: T) -> Self
Sets the value of deployment_spec.
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.
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.
Trait Implementations§
Source§impl Clone for ReasoningEngineSpec
impl Clone for ReasoningEngineSpec
Source§fn clone(&self) -> ReasoningEngineSpec
fn clone(&self) -> ReasoningEngineSpec
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReasoningEngineSpec
impl Debug for ReasoningEngineSpec
Source§impl Default for ReasoningEngineSpec
impl Default for ReasoningEngineSpec
Source§fn default() -> ReasoningEngineSpec
fn default() -> ReasoningEngineSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReasoningEngineSpecwhere
ReasoningEngineSpec: Default,
impl<'de> Deserialize<'de> for ReasoningEngineSpecwhere
ReasoningEngineSpec: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for ReasoningEngineSpec
impl Message for ReasoningEngineSpec
Source§impl PartialEq for ReasoningEngineSpec
impl PartialEq for ReasoningEngineSpec
Source§impl Serialize for ReasoningEngineSpec
impl Serialize for ReasoningEngineSpec
impl StructuralPartialEq for ReasoningEngineSpec
Auto Trait Implementations§
impl Freeze for ReasoningEngineSpec
impl RefUnwindSafe for ReasoningEngineSpec
impl Send for ReasoningEngineSpec
impl Sync for ReasoningEngineSpec
impl Unpin for ReasoningEngineSpec
impl UnwindSafe for ReasoningEngineSpec
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