collaboration

package
v0.0.0-...-f56615f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package collaboration exposes a bounded set of sub-agent collaboration tools.

Index

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 New

func New(ctx context.Context, runner *agent.Runner) *Manager

func (*Manager) Quiesce

func (m *Manager) Quiesce(ctx context.Context) error

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) Restore

func (m *Manager) Restore(data json.RawMessage) error

func (*Manager) RestoreContext

func (m *Manager) RestoreContext(ctx context.Context, data json.RawMessage) error

RestoreContext cancels and joins tasks from the previous session before atomically replacing the persisted task set.

func (*Manager) Shutdown

func (m *Manager) Shutdown(ctx context.Context) error

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

func (*Manager) Tools

func (m *Manager) Tools() []tool.Tool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL