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.
Click to show internal directories.
Click to hide internal directories.