bridge

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryRegistrarAdapter

type DiscoveryRegistrarAdapter struct {
	// contains filtered or unexported fields
}

DiscoveryRegistrarAdapter adapts discovery.Registry to skills.CapabilityRegistrar. This adapter lives in internal/bridge to avoid circular dependencies between agent/skills and agent/discovery (§15 workflow-local interfaces).

func NewDiscoveryRegistrarAdapter

func NewDiscoveryRegistrarAdapter(registry discovery.Registry) *DiscoveryRegistrarAdapter

NewDiscoveryRegistrarAdapter creates a new adapter wrapping a discovery.Registry.

func (*DiscoveryRegistrarAdapter) RegisterCapability

func (a *DiscoveryRegistrarAdapter) RegisterCapability(ctx context.Context, desc *skills.CapabilityDescriptor) error

RegisterCapability converts a skills.CapabilityDescriptor to discovery.CapabilityInfo and registers it with the discovery registry.

func (*DiscoveryRegistrarAdapter) UnregisterCapability

func (a *DiscoveryRegistrarAdapter) UnregisterCapability(ctx context.Context, agentID string, capabilityName string) error

UnregisterCapability removes a capability from the discovery registry.

Jump to

Keyboard shortcuts

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