pub struct AgentContext {
pub messages: Vec<Message>,
pub tools: Vec<Arc<dyn Tool>>,
}Expand description
The transcript and the tools the model may call.
Fields§
§messages: Vec<Message>Messages so far. The loop appends to them.
tools: Vec<Arc<dyn Tool>>Active tools. The loop declares changes to the model in system messages.
Trait Implementations§
Source§impl Clone for AgentContext
impl Clone for AgentContext
Auto Trait Implementations§
impl !RefUnwindSafe for AgentContext
impl !UnwindSafe for AgentContext
impl Freeze for AgentContext
impl Send for AgentContext
impl Sync for AgentContext
impl Unpin for AgentContext
impl UnsafeUnpin 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