Help us shape the future of Go! Take the 2026 Go Developer Survey

bridgeagents

package
v0.19.11 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package bridgeagents lets an agent see and talk to its owner's other Orb conversations, on this machine and on connected devices, through Bridge. Its tool exists for the model only while one of them is reachable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extension

func Extension(b Bridge) extensions.Factory

Extension registers the agents tool, active only while another conversation is reachable: no Bridge, or nobody else on it, costs the model nothing.

Types

type Bridge

type Bridge interface {
	// Machines are the peer IDs of this machine, first, and of the connected devices.
	Machines(ctx context.Context) ([]string, error)
	// Call runs a peer method as the owner does.
	Call(ctx context.Context, peer, method string, params, result any) error
	// Self is the instance this Orb runs as on Bridge, empty when it is not attached.
	Self() string
}

Bridge is how the plugin reaches Bridge, with its owner's reach.

Jump to

Keyboard shortcuts

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