agentadapter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package agentadapter adapts host-approved skillkit activations to the goagent SkillProvider contract. It never registers or executes tools.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingResolver   = errors.New("skill activation resolver is required")
	ErrMissingActivation = errors.New("skill activation is required")
)

Functions

This section is empty.

Types

type ActivationResolver

type ActivationResolver func(context.Context, agentcore.RunRequest) (*skillkit.Activation, error)

ActivationResolver resolves the host-selected activation for one agent run. The host remains responsible for deriving its tool policy from that same activation before it creates the run-scoped tool registry.

type Provider

type Provider struct {
	Resolve ActivationResolver
}

Provider maps an already authorized activation to model-facing skills.

func (Provider) Skills

func (p Provider) Skills(ctx context.Context, request agentcore.RunRequest) ([]agentcore.Skill, error)

Skills implements agentcore.SkillProvider without changing the run tool set.

Jump to

Keyboard shortcuts

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