feat: Add inter-agent conversation system (listen, ask, answer)
Enables parallel agents to communicate through a CLI-based conversation mechanism coordinated via tRPC. Agents can ask questions to peers and receive answers, with target resolution by agent ID, task ID, or phase ID.
This commit is contained in:
@@ -212,3 +212,18 @@ Docker-based preview deployments. No database table — Docker is the source of
|
||||
| `getPreviewStatus` | query | Get preview status: `{previewId}` → PreviewStatus |
|
||||
|
||||
Context dependency: `requirePreviewManager(ctx)` — requires `PreviewManager` from container.
|
||||
|
||||
## Conversation Procedures
|
||||
|
||||
Inter-agent communication for parallel agents.
|
||||
|
||||
| Procedure | Type | Description |
|
||||
|-----------|------|-------------|
|
||||
| `createConversation` | mutation | Ask a question: `{fromAgentId, toAgentId?, phaseId?, taskId?, question}` → Conversation |
|
||||
| `getPendingConversations` | query | Poll for incoming questions: `{agentId}` → Conversation[] |
|
||||
| `getConversation` | query | Get conversation by ID: `{id}` → Conversation |
|
||||
| `answerConversation` | mutation | Answer a conversation: `{id, answer}` → Conversation |
|
||||
|
||||
Target resolution: `toAgentId` → direct; `taskId` → find running agent by task; `phaseId` → find running agent by any task in phase.
|
||||
|
||||
Context dependency: `requireConversationRepository(ctx)`, `requireAgentManager(ctx)`.
|
||||
|
||||
Reference in New Issue
Block a user