pub struct BuiltAgent {
pub agent: Agent,
pub servers: Vec<McpServer>,
}Expand description
A live agent plus the MCP server sessions its tools hold.
The sessions must outlive the run: each MCP tool keeps a client-peer clone into its server’s session, so dropping the sessions stops the tools. The run driver keeps them for the run’s life and closes them when it ends.
Fields§
§agent: AgentThe built agent the runtime drives.
servers: Vec<McpServer>The MCP sessions to keep alive for the run, then close.
Auto Trait Implementations§
impl !RefUnwindSafe for BuiltAgent
impl !UnwindSafe for BuiltAgent
impl Freeze for BuiltAgent
impl Send for BuiltAgent
impl Sync for BuiltAgent
impl Unpin for BuiltAgent
impl UnsafeUnpin for BuiltAgent
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