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

host

package
v0.13.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterRegistry

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

func NewAdapterRegistry

func NewAdapterRegistry(fallback TargetContextProvider) *AdapterRegistry

func (*AdapterRegistry) Adapter

func (r *AdapterRegistry) Adapter(appID string) (AppAdapter, bool)

func (*AdapterRegistry) Register

func (r *AdapterRegistry) Register(ctx context.Context, adapter AppAdapter, registry *tools.Registry) error

func (*AdapterRegistry) ResolveRunTarget

func (r *AdapterRegistry) ResolveRunTarget(ctx context.Context, req TargetContextRequest) (*TargetContext, error)

func (*AdapterRegistry) ResolveTarget

func (r *AdapterRegistry) ResolveTarget(ctx context.Context, appID string, target agentcore.TargetRef) (*TargetContext, error)

type AppAdapter

type AppAdapter interface {
	AppID() string
}

type ConfiguredAppAdapter

type ConfiguredAppAdapter struct {
	ID              string
	ContextProvider RunTargetContextProvider
	Register        func(ctx context.Context, registry *tools.Registry) error
}

func (ConfiguredAppAdapter) AppID

func (a ConfiguredAppAdapter) AppID() string

func (ConfiguredAppAdapter) RegisterTools

func (a ConfiguredAppAdapter) RegisterTools(ctx context.Context, registry *tools.Registry) error

func (ConfiguredAppAdapter) ResolveRunTarget

func (ConfiguredAppAdapter) ResolveTarget

func (a ConfiguredAppAdapter) ResolveTarget(ctx context.Context, appID string, target agentcore.TargetRef) (*TargetContext, error)

type HTTPContextProvider

type HTTPContextProvider struct {
	Endpoint string
	Token    string
	Client   *http.Client
}

func (HTTPContextProvider) ResolveRunTarget

func (HTTPContextProvider) ResolveTarget

func (p HTTPContextProvider) ResolveTarget(ctx context.Context, appID string, target agentcore.TargetRef) (*TargetContext, error)

type RunTargetContextProvider

type RunTargetContextProvider interface {
	ResolveRunTarget(ctx context.Context, req TargetContextRequest) (*TargetContext, error)
}

type StaticContextProvider

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

func NewStaticContextProvider

func NewStaticContextProvider() *StaticContextProvider

func (*StaticContextProvider) Register

func (p *StaticContextProvider) Register(appID string, target agentcore.TargetRef, targetContext TargetContext)

func (*StaticContextProvider) ResolveTarget

func (p *StaticContextProvider) ResolveTarget(_ context.Context, appID string, target agentcore.TargetRef) (*TargetContext, error)

type TargetContext

type TargetContext = sdk.TargetContext

type TargetContextProvider

type TargetContextProvider interface {
	ResolveTarget(ctx context.Context, appID string, target agentcore.TargetRef) (*TargetContext, error)
}

type TargetContextRequest

type TargetContextRequest = sdk.TargetContextRequest

type TargetResolver

type TargetResolver interface {
	ResolveTarget(ctx context.Context, appID string, target agentcore.TargetRef) (*TargetContext, error)
}

type ToolRegistrar

type ToolRegistrar interface {
	RegisterTools(ctx context.Context, registry *tools.Registry) error
}

Jump to

Keyboard shortcuts

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