-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
a2aA2A protocol integrationA2A protocol integrationcoreenhancementNew feature or requestNew feature or requestsub-agentsSub-agent orchestrationSub-agent orchestration
Description
Parent: #709
Summary
Implement SubAgentManager in zeph-core that manages sub-agent lifecycle using in-process mpsc channels with A2A message semantics.
Scope
SubAgentManagerstruct with spawn/cancel/collect/statuses methodsSubAgentHandlewith task state, JoinHandle, CancellationToken, status watch channelSubAgentChannelusing tokio::sync::mpsc for A2A message passingA2aMessageenum wrapping zeph-a2a types (SendMessage, StatusUpdate, ArtifactUpdate, Cancel)- Sub-agent execution loop: receive task, run LLM turns, send progress, return result
- Integration point in Agent (new
subagent_managerfield) - Foreground-only execution (blocking spawn)
Acceptance Criteria
- SubAgentManager spawns a sub-agent that completes a simple task
- Cancel terminates a running sub-agent
- Status updates flow from sub-agent to manager via watch channel
- max_turns limit enforced (sub-agent stops after N turns)
- timeout_secs enforced via tokio::time::timeout
- Completed sub-agent result collected via collect()
- zeph-a2a types reused for all protocol messages
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a2aA2A protocol integrationA2A protocol integrationcoreenhancementNew feature or requestNew feature or requestsub-agentsSub-agent orchestrationSub-agent orchestration