rony-llm-agent/pkg
Victor Vargas 2e23216932 fix(agent): last-iteration false failure, cached schemas, usage in tool rounds
- Run() reported "max iterations reached" even when a valid final answer
  arrived exactly on the last allowed iteration, throwing the response
  away; a completed flag now distinguishes success from budget exhaustion.
- Tool schemas are marshaled once per Run/RunStream instead of once per
  loop iteration — they never change between iterations.
- RunStream's content gate (which hides raw deltas during a tool-call
  round) also swallowed that round's token usage, so callers only ever saw
  the final round's count and context tracking lagged exactly when the
  context grew fastest. Usage is now forwarded in its own chunk.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 16:14:15 -07:00
..
agent fix(agent): last-iteration false failure, cached schemas, usage in tool rounds 2026-07-12 16:14:15 -07:00
config feat(config): add YAML config loader with hierarchical precedence 2026-06-30 23:53:20 -07:00
llm fix(llamacpp,anthropic): SSE headroom, no-choices guard, real context window 2026-07-12 16:14:15 -07:00
persona feat(agent): wire AGENTS.md discovery into the agent loop's system prompt 2026-07-08 23:27:17 -07:00
rag feat(rag): add SQLite+FTS5 backend, fix content/usage plumbing bugs 2026-07-06 00:05:30 -07:00
tools Fix tool call tracking and streaming assembly for all providers 2026-07-08 16:11:57 -07:00