pub struct AgentContext {
pub config: Arc<Config>,
pub client: Arc<OpenAiClient>,
pub plugins: Arc<PluginRegistry>,
pub tools: Arc<ToolRegistry>,
}
Expand description
Context passed to each agent during execution.
Fields§
§config: Arc<Config>
§client: Arc<OpenAiClient>
§plugins: Arc<PluginRegistry>
§tools: Arc<ToolRegistry>
Auto Trait Implementations§
impl Freeze for AgentContext
impl !RefUnwindSafe for AgentContext
impl Send for AgentContext
impl Sync for AgentContext
impl Unpin for AgentContext
impl !UnwindSafe for AgentContext
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