pub enum HarnessReported {
Said {
text: String,
},
Thought {
text: String,
},
ToolCall {
call: String,
title: String,
kind: String,
},
ToolCallStatus {
call: String,
status: String,
},
Other {
variant: String,
},
PermissionAsked {
title: String,
options: Vec<HarnessPermit>,
},
PermissionAnswered {
chosen: Option<String>,
},
}Expand description
harness_reported: one thing the harness reported during a run.
The report key says which. A fold that answers “what did the city
do” never reads this kind; only a view that answers “what did the
harness say” does.
Variants§
Said
A piece of the answer to the city.
Thought
A piece of the harness’s reasoning.
ToolCall
A tool call the harness started, in its own words.
Fields
ToolCallStatus
The status of a tool call the harness started changed.
Fields
Other
A report this city has no reading for; only its name is kept.
PermissionAsked
The harness asked the city for a permission.
Fields
§
options: Vec<HarnessPermit>The options it offered, in the order it offered them.
PermissionAnswered
The city answered a permission the harness asked for.
Trait Implementations§
Source§impl Clone for HarnessReported
impl Clone for HarnessReported
Source§impl Debug for HarnessReported
impl Debug for HarnessReported
Source§impl<'de> Deserialize<'de> for HarnessReported
impl<'de> Deserialize<'de> for HarnessReported
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 HarnessReported
Source§impl PartialEq for HarnessReported
impl PartialEq for HarnessReported
Source§impl Serialize for HarnessReported
impl Serialize for HarnessReported
impl StructuralPartialEq for HarnessReported
Auto Trait Implementations§
impl Freeze for HarnessReported
impl RefUnwindSafe for HarnessReported
impl Send for HarnessReported
impl Sync for HarnessReported
impl Unpin for HarnessReported
impl UnsafeUnpin for HarnessReported
impl UnwindSafe for HarnessReported
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