pub struct AcpToolset { /* private fields */ }Expand description
A collection of ACP agents exposed as an ADK Toolset.
Each agent becomes a named tool that can be invoked by the parent ADK agent.
§Example
ⓘ
use adk_acp::{AcpToolset, AcpAgentTool};
let toolset = AcpToolset::new("coding-agents")
.add(AcpAgentTool::new("claude-code").description("Complex refactoring"))
.add(AcpAgentTool::new("codex").description("Quick code generation"));
let agent = LlmAgentBuilder::new("orchestrator")
.toolset(Arc::new(toolset))
.build()?;Implementations§
Source§impl AcpToolset
impl AcpToolset
Sourcepub fn with_agent(self, tool: AcpAgentTool) -> Self
pub fn with_agent(self, tool: AcpAgentTool) -> Self
Add an ACP agent tool to the toolset.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AcpToolset
impl !RefUnwindSafe for AcpToolset
impl Send for AcpToolset
impl Sync for AcpToolset
impl Unpin for AcpToolset
impl UnsafeUnpin for AcpToolset
impl !UnwindSafe for AcpToolset
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