Skip to content

hylo.codeagents.chats

Package: hylo-code-agents · Core contracts

chats

hylo chats: tool-agent conversations from run traces as training records (chat format with tool calls).

hylo chats RUN_DIR [RUN_DIR ...] --out chats.jsonl [--all] [--include-assisted] [--max-result 4000]

One JSON line per episode (or tool session): {"messages": [...], "tools": [...], "meta": {...}} in the common chat-completions shape (system, user, assistant with tool_calls, tool). By default only episodes the task's check judged successful are written, and never episodes a person steered (human_assisted) unless --include-assisted: learning from steered runs would credit the model with the person's help. Images are not included; the observation turns keep their text with a note of how many images they had. Results longer than --max-result characters are cut.

episodes

episodes(run: Path) -> Iterator[Path]

conversation

conversation(path: Path, max_result: int = 4000) -> dict[str, Any] | None

main

main(argv: Sequence[str] | None = None) -> int

export tool-agent conversations from traces as training records