pub struct AgentSession { /* private fields */ }Implementations§
Source§impl AgentSession
impl AgentSession
pub fn id(&self) -> SessionId
pub async fn run(&self, input: SessionInput) -> Result<SubmissionId>
pub async fn continue_turn(&self) -> Result<SubmissionId>
pub async fn steer(&self, input: SessionInput)
pub async fn follow_up(&self, input: SessionInput)
pub async fn abort_current_turn(&self) -> bool
pub async fn next_event(&self) -> Result<AgentEvent>
pub async fn run_collect_text( &self, input: impl Into<SessionInput>, ) -> Result<String, RunCollectTextError>
pub async fn status(&self) -> SessionStatus
pub async fn snapshot(&self) -> SessionSnapshot
Trait Implementations§
Source§impl Clone for AgentSession
impl Clone for AgentSession
Source§fn clone(&self) -> AgentSession
fn clone(&self) -> AgentSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AgentSession
impl !UnwindSafe for AgentSession
impl Freeze for AgentSession
impl Send for AgentSession
impl Sync for AgentSession
impl Unpin for AgentSession
impl UnsafeUnpin for AgentSession
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