pub struct ShapeReport {Show 16 fields
pub field: String,
pub format: String,
pub original: String,
pub cut: bool,
pub proposal: String,
pub language: Option<String>,
pub back_translation: Option<String>,
pub diff: Diff,
pub assumptions: Vec<Assumption>,
pub unexplained: Vec<String>,
pub coverage: Vec<Coverage>,
pub questions: Vec<String>,
pub findings: Vec<Finding>,
pub findings_before: Vec<Finding>,
pub run_id: Option<String>,
pub usage: Option<Value>,
}Expand description
Result of speccoder shape: the assistant’s proposal for a field, and
what code found it changed — added and dropped words, sentences that
landed nowhere, values introduced without an assumption, and what makes
the text hard to test. Nothing is written anywhere.
Fields§
§field: StringThe field it is for: requirement, feature, quick,
bug_symptom, bug_expected, bug_unchanged, answer or note.
format: StringThe spec format it is written for (speckit, openspec).
original: StringThe person’s words, as given (cut at 20 000 characters).
cut: boolThe person’s words were longer and were cut.
proposal: StringThe proposal, as it would go into the field.
language: Option<String>The person’s language, when it is not the spec’s.
back_translation: Option<String>The proposal translated back into the person’s language (then the diff and the coverage are against it).
diff: DiffWhich words are the person’s, added or dropped (by code).
assumptions: Vec<Assumption>Values the assistant says it introduced.
unexplained: Vec<String>Added numbers and terms no assumption explains (by code).
coverage: Vec<Coverage>Where each of the person’s sentences went (by code).
questions: Vec<String>Questions the assistant left open instead of guessing.
findings: Vec<Finding>The writing check of the proposal (model-free).
findings_before: Vec<Finding>The writing check of the person’s own words.
run_id: Option<String>The shaping run, when one ran.
usage: Option<Value>Its tokens.
Trait Implementations§
Source§impl Clone for ShapeReport
impl Clone for ShapeReport
Source§impl Debug for ShapeReport
impl Debug for ShapeReport
impl Eq for ShapeReport
Source§impl JsonSchema for ShapeReport
impl JsonSchema for ShapeReport
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more