Documentation
¶
Overview ¶
Package skills discovers and parses application-owned SKILL.md files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AWSS3Client ¶
AWSS3Client adapts the AWS SDK S3 client to S3Client. Listing consumes all pages before returning so SkillLoader sees a complete source.
func (AWSS3Client) GetObject ¶
func (c AWSS3Client) GetObject(ctx context.Context, bucket, key string) (io.ReadCloser, error)
func (AWSS3Client) ListObjects ¶
type AzureBlobClient ¶
AzureBlobClient adapts the Azure Blob SDK client to BlobClient.
func (AzureBlobClient) DownloadBlob ¶
func (c AzureBlobClient) DownloadBlob(ctx context.Context, container, name string) (io.ReadCloser, error)
type BlobClient ¶
type BlobClient interface {
ListBlobs(ctx context.Context, container, prefix string) ([]string, error)
DownloadBlob(ctx context.Context, container, name string) (io.ReadCloser, error)
}
BlobClient is the subset of an Azure Blob Storage client required by BlobLoader. Implementations can delegate to an Azure SDK client.
type BlobLoader ¶
type BlobLoader struct {
Client BlobClient
Container string
Prefix string
}
BlobLoader loads SKILL.md blobs from an Azure Blob Storage container.
type DirectoryLoader ¶
type DirectoryLoader struct {
Directories []string
}
DirectoryLoader loads one skill per immediate child directory under each root. It is the default when AgentOptions.SkillsLoader is nil.
type Loader ¶
type Loader = SkillLoader
Loader is kept as an alias for compatibility with earlier releases.
type S3Client ¶
type S3Client interface {
ListObjects(ctx context.Context, bucket, prefix string) ([]string, error)
GetObject(ctx context.Context, bucket, key string) (io.ReadCloser, error)
}
S3Client is the subset of an S3 client required by S3Loader. Implementations can delegate to an SDK client and keep SDK-specific request types out of the skills package.
type Skill ¶
func LoadDirectories ¶
LoadDirectories loads one skill per immediate child directory. Directories are processed in lexical order and duplicate skill names are rejected.