pub struct AsyncThread {
pub id: String,
/* private fields */
}Expand description
Asynchronous thread handle.
Fields§
§id: StringImplementations§
Source§impl AsyncThread
impl AsyncThread
pub async fn run(&self, input: impl Into<Input>) -> Result<TurnResult>
pub async fn run_with( &self, input: impl Into<Input>, options: &TurnOptions, ) -> Result<TurnResult>
pub async fn turn(&self, input: impl Into<Input>) -> Result<AsyncTurnHandle>
pub async fn turn_with( &self, input: impl Into<Input>, options: &TurnOptions, ) -> Result<AsyncTurnHandle>
pub async fn read(&self) -> Result<ThreadReadResponse>
pub async fn read_with_turns( &self, include_turns: bool, ) -> Result<ThreadReadResponse>
pub async fn set_name( &self, name: impl Into<String>, ) -> Result<ThreadSetNameResponse>
pub async fn compact(&self) -> Result<ThreadCompactStartResponse>
Trait Implementations§
Source§impl Clone for AsyncThread
impl Clone for AsyncThread
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncThread
impl !UnwindSafe for AsyncThread
impl Freeze for AsyncThread
impl Send for AsyncThread
impl Sync for AsyncThread
impl Unpin for AsyncThread
impl UnsafeUnpin for AsyncThread
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