ontocast.cli.http_parse¶
Shared HTTP query/body parsing for CLI server routes.
parse_llm_graph_format_param(value, default)
¶
Parse optional llm_graph_format override from request params.
Source code in ontocast/cli/http_parse.py
parse_max_visits_param(value, default)
¶
Parse optional max_visits override from query/form/json metadata.
Source code in ontocast/cli/http_parse.py
parse_strip_provenance_param(value)
¶
Parse strip_provenance query/form value.
Source code in ontocast/cli/http_parse.py
resolve_ontology_context_mode(requested_mode, fixed_ontology_id)
¶
Resolve effective ontology context mode for a request.
A non-empty ontology_context_fixed_ontology_id forces fixed catalog mode.
This allows clients to pick fixed ontology context per request even when the
server default mode differs.