pub struct DurableTurn { /* private fields */ }Implementations§
Source§impl DurableTurn
impl DurableTurn
pub fn recover(session: Session) -> Result<Self, String>
pub fn boxes(&self) -> &[ChatBox]
pub fn status(&self) -> Status
pub fn accept( &mut self, box_type: String, contents: String, hidden_type: String, hidden_contents: String, ) -> Result<(), String>
pub fn accept_tool_return( &mut self, tool_call_id: ToolCallId, result: Result<String, String>, ) -> Result<(), String>
pub fn accept_tool_message( &mut self, tool_call_id: ToolCallId, message: String, ) -> Result<(), String>
pub fn accept_tool_return_v2( &mut self, tool_call_id: ToolCallId, result: Result<String, String>, metadata_type: String, metadata_contents: String, ) -> Result<(), String>
pub fn begin(&mut self) -> Result<Option<Start>, String>
pub fn prepare_stage( &mut self, job: u64, text: String, values: Vec<BoxValue>, ) -> Result<Vec<PreparedCall>, String>
pub fn prepare_steer( &mut self, job: u64, ) -> Result<Option<PreparedSteer>, String>
pub fn validate_steer(&self, prepared: &PreparedSteer) -> Result<(), String>
pub fn commit_steer(&mut self, prepared: PreparedSteer) -> Result<(), String>
pub fn complete( &mut self, job: u64, output: ShimOutput<BoxValue>, ) -> Result<bool, String>
pub fn fail( &mut self, job: u64, message: String, restartable_before_launch: bool, )
pub fn restart(&mut self) -> Result<(), RestartError>
Auto Trait Implementations§
impl Freeze for DurableTurn
impl RefUnwindSafe for DurableTurn
impl Send for DurableTurn
impl Sync for DurableTurn
impl Unpin for DurableTurn
impl UnsafeUnpin for DurableTurn
impl UnwindSafe for DurableTurn
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