MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / root_schema_for

Function root_schema_for

crates/flowtrace-cli/src/explain.rs:71–79  ·  view source on GitHub ↗

Build the root JsonSchema for `reply` / `state` / `trace` / `run_detail`.

(root: &str)

Source from the content-addressed store, hash-verified

69
70/// Build the root JsonSchema for `reply` / `state` / `trace` / `run_detail`.
71fn root_schema_for(root: &str) -> RootSchema {
72 match root {
73 "reply" => schema_for!(flowtrace_core::output::StructuredOutput),
74 "state" => schema_for!(flowtrace_core::state::RunState),
75 "trace" => schema_for!(flowtrace_core::schema::Trace),
76 "run_detail" => schema_for!(crate::serve::routes::runs::RunDetail),
77 _ => unreachable!("ROOTS filter guarantees one of these"),
78 }
79}
80
81/// Walk a dotted path through a schema, following `properties`, items,
82/// `oneOf` variant tags, and `$ref` indirections. Returns the SchemaObject at

Callers 1

explainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…