pub enum StepChange {
Start {
name: String,
},
Done,
Fail {
reason: String,
},
}Expand description
A change of the long step of a session (01M48VDGTD40P8RBZMS0XB5M9N): a step that runs longer than a tool call, for example a live window of two hours.
use riff_core::wire::StepChange;
let start = StepChange::Start { name: "live window".into() };
assert_eq!(serde_json::to_string(&start).unwrap(), r#"{"start":{"name":"live window"}}"#);
assert_eq!(serde_json::to_string(&StepChange::Done).unwrap(), r#""done""#);Variants§
Start
A new step starts. It replaces the old step.
Done
The step ended well. No step shows.
Fail
The step failed, for reason. It shows until the next change.
Trait Implementations§
Source§impl Clone for StepChange
impl Clone for StepChange
Source§fn clone(&self) -> StepChange
fn clone(&self) -> StepChange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepChange
impl Debug for StepChange
Source§impl<'de> Deserialize<'de> for StepChange
impl<'de> Deserialize<'de> for StepChange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for StepChange
impl JsonSchema for StepChange
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for StepChange
impl PartialEq for StepChange
Source§impl Serialize for StepChange
impl Serialize for StepChange
impl Eq for StepChange
impl StructuralPartialEq for StepChange
Auto Trait Implementations§
impl Freeze for StepChange
impl RefUnwindSafe for StepChange
impl Send for StepChange
impl Sync for StepChange
impl Unpin for StepChange
impl UnsafeUnpin for StepChange
impl UnwindSafe for StepChange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.