feat(agent): M4 — bounded tool-use loop + LlmProvider (scripted fake) #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/m4-agent"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap M4: the agent engine, deterministically testable with no live LLM.
Changes (geneatrip-agent)
LlmProvidertrait (one OpenAI-compatible shape for Qwen/Ollama + Kimi/UmansAI);Message/Role/ToolCall/Turn/LlmError.Tooltrait +ToolSpec+ToolOutcome(Ok/Err — structured, never fabricated; FR-AGT-14).run(): bounded loop (plan → call tools → observe → repeat) withBudgetcaps (max_iters/max_tool_calls) ending gracefully with a marked partial (FR-AGT-08/20); unknown/failed tools surfaced as JSON errors, not panics.ScriptedProvider: replays a fixedTurnsequence (tech-spec 12.3).Verification
just qagreen. 5 tests: tool-then-finish, tool-call budget cap, empty-script finalize, failing-tool surfaced, unknown-tool safe.Next: OpenAI-compatible HTTP provider (live Qwen/Kimi) + the trip toolset, then wiring into the trip builder (M6) to replace StubBuilder. Traces: FR-AGT-08/09/10/14/20 · tech-spec 04.