Documentation
¶
Overview ¶
Package collaboration exposes a bounded set of sub-agent collaboration tools.
Index ¶
- type Manager
- func (m *Manager) Quiesce(ctx context.Context) error
- func (m *Manager) Restore(data json.RawMessage) error
- func (m *Manager) RestoreContext(ctx context.Context, data json.RawMessage) error
- func (m *Manager) Shutdown(ctx context.Context) error
- func (m *Manager) Snapshot() json.RawMessage
- func (m *Manager) Tools() []tool.Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Quiesce ¶
Quiesce cancels and joins active tasks while keeping their final state and allowing the manager to be reused. Session switches use it to take a durable snapshot before replacing the task set.
func (*Manager) RestoreContext ¶
RestoreContext cancels and joins tasks from the previous session before atomically replacing the persisted task set.
func (*Manager) Shutdown ¶
Shutdown prevents new sub-agents, interrupts all active tasks, and joins their consumers without holding the manager lock while waiting.
func (*Manager) Snapshot ¶
func (m *Manager) Snapshot() json.RawMessage
Click to show internal directories.
Click to hide internal directories.