plugins

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	Name() string
	Tools() []ToolSpec
	Call(ctx context.Context, call ToolCall) (ToolResult, error)
}

Plugin is a bounded runtime capability provider exposed to Prism agents.

type Registry

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

Registry maps agent-declared tool names to concrete runtime plugins.

func NewRegistry

func NewRegistry(plugins ...Plugin) *Registry

func (*Registry) Alias

func (r *Registry) Alias(alias, target string)

func (*Registry) Get

func (r *Registry) Get(name string) (Plugin, bool)

func (*Registry) MustGet

func (r *Registry) MustGet(name string) (Plugin, error)

func (*Registry) Names

func (r *Registry) Names() []string

func (*Registry) Register

func (r *Registry) Register(plugin Plugin)

type ToolCall

type ToolCall struct {
	Tool string
	Args map[string]string
}

ToolCall is a structured request from Prism's runner into a Plugin.

type ToolResult

type ToolResult struct {
	Label        string
	Content      string
	EvidencePack *evidence.Pack
}

ToolResult is the evidence returned by a Plugin call.

type ToolSpec

type ToolSpec struct {
	Name        string
	Description string
	ReadOnly    bool
	Mode        string
	MaxBytes    int
}

ToolSpec describes one callable operation within a Plugin.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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