pub struct AgentContext {
pub system_prompt: String,
pub messages: Vec<Message>,
pub tools: Vec<Arc<dyn AgentTool>>,
}Expand description
A snapshot of agent state passed into the loop. AgentMessage here is just
Message (no custom app messages in this port).
Fields§
§system_prompt: String§messages: Vec<Message>§tools: Vec<Arc<dyn AgentTool>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AgentContext
impl !UnwindSafe for AgentContext
impl Forget for AgentContext
impl Freeze for AgentContext
impl Move 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