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 events(&self) -> Vec<EventRecord>
pub fn status(&self) -> Status
pub fn preflight_calls(&self) -> &[PreparedPreflightCall]
pub fn prepare_preflight( &mut self, items: Vec<PreflightItem>, ) -> Result<Vec<PreparedPreflightCall>, String>
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_mailbox_flush( &mut self, job: u64, ) -> Result<Option<PreparedMailboxFlush>, String>
pub fn validate_mailbox_flush( &self, prepared: &PreparedMailboxFlush, ) -> Result<(), String>
pub fn commit_mailbox_flush( &mut self, prepared: PreparedMailboxFlush, ) -> Result<(), String>
pub fn complete( &mut self, job: u64, output: ShimOutput<BoxValue>, ) -> Result<bool, String>
pub fn complete_recoverable_failure( &mut self, job: u64, message: String, ) -> Result<bool, String>
pub fn reset_provider_context(&mut self) -> Result<(), String>
pub fn halt_critical(&mut self, message: String) -> Result<(), String>
pub fn record_diagnostic( &mut self, diagnostic: ChatDiagnostic, ) -> Result<(), String>
pub fn record_model_usage( &mut self, connected_box_id: u64, usage: ModelUsage, ) -> Result<(), 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