pub struct AgentDeps {
pub oauth_credential_store: Option<Arc<dyn OAuthCredentialStorage>>,
pub observer_factory: Option<ObserverFactory>,
}Expand description
Cross-cutting dependencies threaded to every agent a run spawns — the root agent and any sub-agents created by in-memory MCP servers. Bundling them keeps the plumbing through builders and servers a single value.
Fields§
§oauth_credential_store: Option<Arc<dyn OAuthCredentialStorage>>§observer_factory: Option<ObserverFactory>Implementations§
Source§impl AgentDeps
impl AgentDeps
pub fn new( oauth_credential_store: Arc<dyn OAuthCredentialStorage>, observer_factory: Option<ObserverFactory>, ) -> Self
Sourcepub fn observer(&self) -> Option<Box<dyn AgentObserver>>
pub fn observer(&self) -> Option<Box<dyn AgentObserver>>
A fresh observer for one agent, if a factory is configured.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AgentDeps
impl !UnwindSafe for AgentDeps
impl Freeze for AgentDeps
impl Send for AgentDeps
impl Sync for AgentDeps
impl Unpin for AgentDeps
impl UnsafeUnpin for AgentDeps
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