Skip to main content

Module args

Module args 

Source
Expand description

Argument construction and validation for tier-2 schemas.

Structs§

HeuristicArgBuilder
Offline builder: uses an embedded JSON object when the intent carries one, otherwise derives arguments from quoted strings, paths, and keywords.
LlmArgBuilder
The cheap model fills the arguments against the schema; the heuristic builder is the fallback when the model output is not valid JSON.

Traits§

ArgBuilder

Functions§

extract_json
Extract the first JSON object embedded in free text.
validate
Validate args against a JSON schema; the error text goes back to the builder.