pub struct A2aConfig {
pub workspace_file: PathBuf,
pub global_dir: Option<PathBuf>,
pub supplied: Vec<A2aAgent>,
}Expand description
Which remote agents a workspace gets: where to look for configured ones, and any the host already has in hand.
Fields§
§workspace_file: PathBufPath relative to the workspace root. Empty names no file to look for;
A2aConfig::supplied_only writes it.
global_dir: Option<PathBuf>The global config directory, if any. a2a.json inside it is used.
supplied: Vec<A2aAgent>Agents the host supplies directly, outranking anything on disk of the same name.
Implementations§
Source§impl A2aConfig
impl A2aConfig
Sourcepub fn with_supplied(self, supplied: Vec<A2aAgent>) -> Self
pub fn with_supplied(self, supplied: Vec<A2aAgent>) -> Self
Adds agents the host already holds, replacing any set before.
Sourcepub fn supplied_only(self) -> Self
pub fn supplied_only(self) -> Self
The host’s own agents, and no file discovery at all: neither
.basis/a2a.json nor the global one is read.
What WorkspaceBuilder::without_discovery leaves of this config, for
McpConfig::supplied_only’s reason: being handed an agent is not
finding one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for A2aConfig
impl RefUnwindSafe for A2aConfig
impl Send for A2aConfig
impl Sync for A2aConfig
impl Unpin for A2aConfig
impl UnsafeUnpin for A2aConfig
impl UnwindSafe for A2aConfig
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