pub struct RemoteA2aConfig {
pub name: String,
pub description: String,
pub agent_url: String,
pub streaming: Option<bool>,
pub credential_broker: Option<Arc<dyn CredentialBroker>>,
pub credential_scopes: Vec<String>,
pub allowed_endpoint_origins: Vec<String>,
}Expand description
Configuration for a remote A2A agent
Fields§
§name: StringName of the agent
description: StringDescription of the agent
agent_url: StringBase URL of the remote agent, such as http://localhost:8080.
The agent card is fetched from {agent_url}/.well-known/agent-card.json,
falling back to {agent_url}/.well-known/agent.json when that returns 404.
streaming: Option<bool>Whether to use streaming for communication.
If None, the agent uses streaming if the remote agent supports it.
credential_broker: Option<Arc<dyn CredentialBroker>>Mints the bearer token sent to the remote agent, for the running agent’s
ActingContext and with agent_url as the resource.
None sends no credential.
credential_scopes: Vec<String>Scopes requested from the credential_broker.
allowed_endpoint_origins: Vec<String>Origins besides agent_url’s own that the agent card may name as its endpoint;
see check_card_endpoint. Empty by
default, so a card naming another origin is refused.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteA2aConfig
impl !UnwindSafe for RemoteA2aConfig
impl Forget for RemoteA2aConfig
impl Freeze for RemoteA2aConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn CredentialBroker> is !null: Freeze,
PhantomData<ArcInner<dyn CredentialBroker>>: Freeze,
PhantomData<String>: Freeze,
impl Move for RemoteA2aConfig
impl Send for RemoteA2aConfig
impl Sync for RemoteA2aConfig
impl Unpin for RemoteA2aConfig
impl UnsafeUnpin for RemoteA2aConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn CredentialBroker> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn CredentialBroker>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
Converts
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> ⓘ
Converts
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