Documentation
¶
Index ¶
- type AdapterRegistry
- func (r *AdapterRegistry) Adapter(appID string) (AppAdapter, bool)
- func (r *AdapterRegistry) Register(ctx context.Context, adapter AppAdapter, registry *tools.Registry) error
- func (r *AdapterRegistry) ResolveRunTarget(ctx context.Context, req TargetContextRequest) (*TargetContext, error)
- func (r *AdapterRegistry) ResolveTarget(ctx context.Context, appID string, target agentcore.TargetRef) (*TargetContext, error)
- type AppAdapter
- type ConfiguredAppAdapter
- func (a ConfiguredAppAdapter) AppID() string
- func (a ConfiguredAppAdapter) RegisterTools(ctx context.Context, registry *tools.Registry) error
- func (a ConfiguredAppAdapter) ResolveRunTarget(ctx context.Context, req TargetContextRequest) (*TargetContext, error)
- func (a ConfiguredAppAdapter) ResolveTarget(ctx context.Context, appID string, target agentcore.TargetRef) (*TargetContext, error)
- type HTTPContextProvider
- type RunTargetContextProvider
- type StaticContextProvider
- type TargetContext
- type TargetContextProvider
- type TargetContextRequest
- type TargetResolver
- type ToolRegistrar
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 (ConfiguredAppAdapter) ResolveRunTarget ¶
func (a ConfiguredAppAdapter) ResolveRunTarget(ctx context.Context, req TargetContextRequest) (*TargetContext, error)
func (ConfiguredAppAdapter) ResolveTarget ¶
func (a ConfiguredAppAdapter) ResolveTarget(ctx context.Context, appID string, target agentcore.TargetRef) (*TargetContext, error)
type HTTPContextProvider ¶
func (HTTPContextProvider) ResolveRunTarget ¶
func (p HTTPContextProvider) ResolveRunTarget(ctx context.Context, req TargetContextRequest) (*TargetContext, error)
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 TargetContextRequest ¶
type TargetContextRequest = sdk.TargetContextRequest
type TargetResolver ¶
Click to show internal directories.
Click to hide internal directories.