pub enum RecorderMode {
Record,
Replay,
Rerun,
}Variants§
Record
Replay
Rerun
Re-issue a recording’s requests against a real provider.
The third mode exists because the other two cannot answer “what would
the model have said if the prompt were different”. Replay never reads
a request’s content — it compares blob ids and returns the recorded
response — so editing a blob changes nothing it observes. Rerun loads
the request back from the blobs (picking up any edit), sends it, and
reports how the new response differs from the recorded one.
Trait Implementations§
Source§impl Clone for RecorderMode
impl Clone for RecorderMode
impl Copy for RecorderMode
Source§impl Debug for RecorderMode
impl Debug for RecorderMode
Source§impl<'de> Deserialize<'de> for RecorderMode
impl<'de> Deserialize<'de> for RecorderMode
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
impl Eq for RecorderMode
Source§impl JsonSchema for RecorderMode
impl JsonSchema for RecorderMode
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 RecorderMode
impl PartialEq for RecorderMode
Source§impl Serialize for RecorderMode
impl Serialize for RecorderMode
impl StructuralPartialEq for RecorderMode
Auto Trait Implementations§
impl Forget for RecorderMode
impl Freeze for RecorderMode
impl Move for RecorderMode
impl RefUnwindSafe for RecorderMode
impl Send for RecorderMode
impl Sync for RecorderMode
impl Unpin for RecorderMode
impl UnsafeUnpin for RecorderMode
impl UnwindSafe for RecorderMode
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