Skip to content

docs(cli): document the agent stream session_stats summary line - #86

Merged
edenreich merged 1 commit into
mainfrom
claude/issue-85-20260529-1605
May 29, 2026
Merged

edenreich merged 1 commit into
mainfrom
claude/issue-85-20260529-1605

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

Adds a new Headless Agent Stream Output subsection to cli.md documenting the JSONL stream contract for infer agent and the final session_stats line emitted on session completion.

Covers:

  • All top-level fields (type, message, timestamp, model, prompt_tokens, completion_tokens, total_tokens, requests, cost).
  • The nested cost object (input, output, total, currency).
  • Pricing-disabled (zeros) behavior and stable-schema guarantee.
  • Behavior: additive, emitted once, always emitted in agent mode, ignore unknown type values.

Resolves #85. Source: inference-gateway/cli#553, inference-gateway/cli#552.

Test plan

  • npm run lint:md clean
  • npm run format:check clean
  • npm run build clean (new section renders in dist/cli.html)

Generated with Claude Code

Adds a new "Headless Agent Stream Output" subsection to the CLI
reference covering the JSONL stream contract for `infer agent` and
the final `session_stats` line emitted on session completion. Fields,
the nested `cost` object (including pricing-disabled zeros behavior),
and consumer guidance (additive, emitted once, ignore unknown types)
are all documented.

Closes #85.
Source: inference-gateway/cli#553, inference-gateway/cli#552.

Co-authored-by: Eden Reich <[email protected]>
@edenreich
edenreich merged commit f8b5aec into main May 29, 2026
@edenreich
edenreich deleted the claude/issue-85-20260529-1605 branch May 29, 2026 16:14
github-actions Bot pushed a commit that referenced this pull request May 29, 2026
## [0.6.45](0.6.44...0.6.45) (2026-05-29)

### 📚 Documentation

* **cli:** document the agent stream session_stats summary line ([#86](#86)) ([f8b5aec](f8b5aec)), closes [inference-gateway/cli#553](inference-gateway/cli#553)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Document the agent stream session_stats summary line

1 participant