pub struct AgentHandle {
pub message_tx: Sender<FrontendMessage>,
pub session_id: String,
pub last_active_at: Instant,
pub frontend: Arc<ChatbotFrontend>,
}Expand description
Handle to a running Agent instance for one chat.
Fields§
§message_tx: Sender<FrontendMessage>Send messages (user input) to the Agent loop.
session_id: String§last_active_at: Instant§frontend: Arc<ChatbotFrontend>Frontend reference for saving user messages.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentHandle
impl !UnwindSafe for AgentHandle
impl Freeze for AgentHandle
impl Send for AgentHandle
impl Sync for AgentHandle
impl Unpin for AgentHandle
impl UnsafeUnpin for AgentHandle
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