hylo.codeagents.preflight¶
Package: hylo-code-agents · Core contracts
preflight ¶
hylo preflight: check, before a tool-agent run, everything that can be checked without running it.
hylo preflight CONFIG [--out DIR] [--no-model] [--no-env]
hylo preflight --model ollama:qwen3.5:35b-a3b [--vision]
Each check prints PASS / FAIL / SKIP with what it found; the exit code is 1 when any check failed, and with --out
the results go to DIR/preflight.json (the run directory, so the evidence of a run includes its preflight):
config the experiment file loads and its plugins (env, agent, benchmark) are installed
source the git commit and whether the working tree has uncommitted changes (a warning, not a failure)
storage free space where the run writes (>= 2 GiB) and in the asset cache (>= 1 GiB)
model a live probe of the agent's chat model: a text reply, an image (vision models), a tool call with
valid JSON arguments, and an answer that uses a tool result
environment the env builds and publishes a RobotSpec (tool agents need one), and its first reset works
PROBE_TOOL
module-attribute
¶
PROBE_TOOL = {'name': 'add_numbers', 'description': 'Add two numbers and return the sum.', 'parameters': {'type': 'object', 'properties': {'a': {'type': 'number', 'description': 'first'}, 'b': {'type': 'number', 'description': 'second'}}, 'required': ['a', 'b'], 'additionalProperties': False}}
probe_model ¶
Text, image, tool call and tool-result round trip against a chat model spec.
preflight ¶
preflight(config: str | None, *, out: str | None = None, model: Any = None, check_model: bool = True, check_env: bool = True) -> list[dict[str, Any]]
main ¶
check a config, storage and a live model before a tool-agent run