pub struct CreateAgentRequest {
pub catalog_name: String,
pub schema_name: String,
pub name: String,
pub invocation_protocol: i32,
pub endpoint: String,
pub description: Option<String>,
pub capabilities: Vec<String>,
pub input_schema: Option<String>,
pub comment: Option<String>,
}Expand description
Create a new agent.
Fields§
§catalog_name: StringThe identifier of the catalog.
schema_name: StringThe identifier of the schema.
name: StringThe identifier of the agent.
invocation_protocol: i32The protocol a recipient uses to invoke the agent.
endpoint: StringThe agent’s invocation endpoint URL.
description: Option<String>An LLM-readable description of what the agent does and the inputs it expects.
capabilities: Vec<String>Capability identifiers advertised by the agent.
input_schema: Option<String>A JSON Schema (encoded as a JSON string) describing the expected input.
comment: Option<String>User-provided free-form text description.
Implementations§
Source§impl CreateAgentRequest
impl CreateAgentRequest
Sourcepub fn invocation_protocol(&self) -> InvocationProtocol
pub fn invocation_protocol(&self) -> InvocationProtocol
Returns the enum value of invocation_protocol, or the default if the field is set to an invalid enum value.
Sourcepub fn set_invocation_protocol(&mut self, value: InvocationProtocol)
pub fn set_invocation_protocol(&mut self, value: InvocationProtocol)
Sets invocation_protocol to the provided enum value.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Sourcepub fn input_schema(&self) -> &str
pub fn input_schema(&self) -> &str
Returns the value of input_schema, or the default value if input_schema is unset.
Trait Implementations§
Source§impl Clone for CreateAgentRequest
impl Clone for CreateAgentRequest
Source§fn clone(&self) -> CreateAgentRequest
fn clone(&self) -> CreateAgentRequest
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 moreSource§impl Debug for CreateAgentRequest
impl Debug for CreateAgentRequest
Source§impl Default for CreateAgentRequest
impl Default for CreateAgentRequest
§impl<'de> Deserialize<'de> for CreateAgentRequest
impl<'de> Deserialize<'de> for CreateAgentRequest
§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
impl Eq for CreateAgentRequest
Source§impl Hash for CreateAgentRequest
impl Hash for CreateAgentRequest
Source§impl Message for CreateAgentRequest
impl Message for CreateAgentRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CreateAgentRequest
impl PartialEq for CreateAgentRequest
§impl Serialize for CreateAgentRequest
impl Serialize for CreateAgentRequest
impl StructuralPartialEq for CreateAgentRequest
Auto Trait Implementations§
impl Freeze for CreateAgentRequest
impl RefUnwindSafe for CreateAgentRequest
impl Send for CreateAgentRequest
impl Sync for CreateAgentRequest
impl Unpin for CreateAgentRequest
impl UnsafeUnpin for CreateAgentRequest
impl UnwindSafe for CreateAgentRequest
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