#[non_exhaustive]pub struct AgentEndpoint {
pub agent_url: String,
pub meta_data_url: Option<String>,
pub documentation_url: Option<String>,
pub protocol: Protocol,
pub transports: Vec<Transport>,
pub functions: Vec<AgentFunction>,
}Expand description
An agent endpoint configuration.
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.agent_url: StringURL where the agent accepts requests.
meta_data_url: Option<String>URL for agent metadata.
documentation_url: Option<String>URL for agent documentation.
protocol: ProtocolCommunication protocol.
transports: Vec<Transport>Supported transport mechanisms.
functions: Vec<AgentFunction>Functions provided by this endpoint.
Implementations§
Source§impl AgentEndpoint
impl AgentEndpoint
Sourcepub fn new(agent_url: impl Into<String>, protocol: Protocol) -> Self
pub fn new(agent_url: impl Into<String>, protocol: Protocol) -> Self
Create a new endpoint with required fields.
Sourcepub fn with_transports(self, transports: Vec<Transport>) -> Self
pub fn with_transports(self, transports: Vec<Transport>) -> Self
Set the transport mechanisms.
Sourcepub fn with_functions(self, functions: Vec<AgentFunction>) -> Self
pub fn with_functions(self, functions: Vec<AgentFunction>) -> Self
Set the functions.
Trait Implementations§
Source§impl Clone for AgentEndpoint
impl Clone for AgentEndpoint
Source§fn clone(&self) -> AgentEndpoint
fn clone(&self) -> AgentEndpoint
Returns a duplicate 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 AgentEndpoint
impl Debug for AgentEndpoint
Source§impl<'de> Deserialize<'de> for AgentEndpoint
impl<'de> Deserialize<'de> for AgentEndpoint
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
Auto Trait Implementations§
impl Freeze for AgentEndpoint
impl RefUnwindSafe for AgentEndpoint
impl Send for AgentEndpoint
impl Sync for AgentEndpoint
impl Unpin for AgentEndpoint
impl UnsafeUnpin for AgentEndpoint
impl UnwindSafe for AgentEndpoint
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