Structs§
- Automated
Flow Strategy - A
FlowStrategyfor automated usage: - Grower
Language Model Client - Our language-model client using
async-openai0.27.x with a synchronous facade around the actual async calls. - Grower
Model - Grower
Model Builder - Builder for
GrowerModel. - Manual
Flow Strategy - A
FlowStrategyfor purely manual usage: - Manual
Grower Flow CliArgs - Manual
Grower Flow CliArgs Builder - Builder for
ManualGrowerFlowCliArgs. - Partially
Grown Model - Partially
Grown Model Builder - Builder for
PartiallyGrownModel.
Enums§
- Clipboard
Snippet - Simple enum to hold whichever snippet we parsed successfully.
- Fuzzy
Load Partially Grown Model Error - Grower
Annotated Leaf Holder Expansions Generation Error - Grower
Core String Skeleton Generation Error - Grower
Language Model Client Error - Grower
Model Builder Error - Error type for GrowerModelBuilder
- Grower
Model Generation Error - Grower
Model Generation Invalid Partial - Grower
String Skeleton Generation Error - Grower
Tree Configuration Generation Error - Manual
Grower Flow CliArgs Builder Error - Error type for ManualGrowerFlowCliArgsBuilder
- Manual
Grower Flow Error - Represents errors that can occur during the manual grower flow.
- Partially
Grown Model Builder Error - Error type for PartiallyGrownModelBuilder
Traits§
- Apply
Clipboard Snippet - Grower
Flow Strategy - A trait representing how we fill in any missing partial-model fields. We can have multiple implementations of this:
Functions§
- attempt_
snippet_ parse - Tries to parse the raw clipboard as type T.
Returns: Ok(Some(value)) if parse succeeded, Ok(None) if it wasn’t valid at all for that type (like a total JSON parse fail), Err(()) if it was valid JSON but fuzzy parse failed => we store it in fail-dir. - manual_
flow_ try_ to_ fix_ missing_ field - Called when validation of the partial model fails with a known “missing partial” error.
We query the
FlowStrategyto see if it can fill in the missing piece automatically or by prompting the user. - maybe_
write_ initial_ partial_ model_ file - missing_
field_ rank - Return an integer rank for a missing partial step: 0 => partial is not missing anything (fully valid) 1 => MissingJustifiedGrowerTreeConfiguration 2 => MissingJustifiedStringSkeleton 3 => MissingStrippedStringSkeleton 4 => MissingCoreStringSkeleton 5 => MissingAnnotatedLeafHolderExpansions
- precise_
parse_ clipboard_ stripped_ skeleton - Helper function for “precise parse” of StrippedStringSkeleton
- snippet_
field_ rank - Return a similar rank for each ClipboardSnippet variant:
- store_
failed_ snippet - try_
deserialize_ with_ path - Attempt to deserialize
valintoT, returning an error string on failure that includes the JSON path (e.g..capstone.probability).