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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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