static

package
v0.4.41 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package static exposes a fixed set of already-constructed tools as an agentkit.ToolProvider.

It exists so any tool or tool pack can be served to a remote consumer that speaks ToolProvider - notably agent/acp-remote's sessionMcp slot, which needs a provider to announce tools to an external ACP agent. Without it, every consumer had to hand-roll a provider wrapper for the same list.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(_ Config, deps Deps) (agentkit.ToolProvider, error)

New registers tools/static: publish a fixed tool list as a ToolProvider. An empty list yields an empty provider rather than an error.

Types

type Config

type Config struct{}

Config carries no knobs; the tool list lives in Deps so it can reference other graph instances.

type Deps

type Deps struct {
	Tools []agentkit.Tool `json:"tools"`
}

Deps lists the tools to expose. Nil entries are skipped.

type Provider

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

Provider is a ToolProvider over a fixed tool slice.

func (*Provider) ListTools

func (p *Provider) ListTools(context.Context) ([]agentkit.Tool, error)

ListTools returns the configured tools, ignoring the call context: the set is static by construction.

Jump to

Keyboard shortcuts

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