Browse Source

docs: plan event agent context summary

zhenyu.hu 3 weeks ago
parent
commit
cd95bbd33c
2 changed files with 25 additions and 0 deletions
  1. 24 0
      docs/plans/todo-21-event-agent-context-summary.md
  2. 1 0
      docs/plans/todos.md

+ 24 - 0
docs/plans/todo-21-event-agent-context-summary.md

@@ -0,0 +1,24 @@
+# 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`.

+ 1 - 0
docs/plans/todos.md

@@ -47,3 +47,4 @@
 | 18 | done | `docs/plans/todo-18-prompt-modal-tool-ui.md` | Move prompt workspace into a modal and improve visible tool-management UI. | `uv run pytest` passes (`46 passed`), plus local browser check confirms modal and tool UI render. |
 | 19 | done | `docs/plans/todo-19-latency-oriented-polish.md` | Do one optimization pass focused on reducing perceived reply wait time and cleaning frontend/backend rough edges. | `uv run pytest` passes (`49 passed`), plus local browser check confirms tools are visible in the first viewport. |
 | 20 | done | `docs/plans/todo-20-agent-config-modals.md` | Split ChatAgent and EventAgent settings into separate configuration modals so the sidebar is no longer crowded. | `uv run pytest` passes. |
+| 21 | in_progress | `docs/plans/todo-21-event-agent-context-summary.md` | Make EventAgent config part of parameter generation context and enqueue an aggregated tool-result summary for the next ChatAgent round. | Tests prove resolvers receive EventAgent config and ChatAgent receives a combined EventAgent summary. |