todo-21-event-agent-context-summary.md 1.1 KB

Todo 21 EventAgent Context Summary Plan

Status: in_progress

Goal

Make EventAgent configuration part of tool-parameter generation and send a combined EventAgent result summary into the ChatAgent input queue.

Why

The UI and contracts already expose EventAgent system_prompt and extra_body, but parameter generation currently only receives event/history. Also, individual tool replies are provider-compatible, but ChatAgent should get a concise aggregate result from EventAgent after all tools in the current event round finish.

Scope

  • Add an EventAgent execution context containing history, system prompt, and extra body.
  • Pass EventAgent config from DebugRuntime into EventAgentRequest.
  • Keep individual tool replies for Chat Completions compatibility.
  • Add one aggregate user message after tool replies so the next ChatAgent round sees the combined EventAgent result.

Verification

  • EventAgent tests prove custom resolvers receive system_prompt and extra_body.
  • Runtime tests prove the second ChatAgent round contains tool replies followed by the aggregate summary.
  • Full suite passes with uv run pytest.