tooltransform

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "tool_definition_transformation"

Variables

This section is empty.

Functions

This section is empty.

Types

type InjectedOutcome

type InjectedOutcome struct {
	Name    string `json:"name"`
	Outcome string `json:"outcome"`
}

type Plugin

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

func New

func New(registry *adapter.Registry) *Plugin

func (*Plugin) Execute

func (*Plugin) MandatoryStages

func (p *Plugin) MandatoryStages() []policy.Stage

func (*Plugin) MutatesMetadata

func (p *Plugin) MutatesMetadata() bool

func (*Plugin) MutatesRequestBody

func (p *Plugin) MutatesRequestBody() bool

func (*Plugin) MutatesResponseBody

func (p *Plugin) MutatesResponseBody() bool

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) SupportedModes

func (p *Plugin) SupportedModes() []policy.Mode

func (*Plugin) SupportedStages

func (p *Plugin) SupportedStages() []policy.Stage

func (*Plugin) ValidateConfig

func (p *Plugin) ValidateConfig(settings map[string]any) error

type ToolTransformData

type ToolTransformData struct {
	Stage        string            `json:"stage"`
	Transformed  []TransformedTool `json:"transformed,omitempty"`
	Injected     []InjectedOutcome `json:"injected,omitempty"`
	Rejected     bool              `json:"rejected,omitempty"`
	RejectedName string            `json:"rejected_name,omitempty"`
}

type TransformedTool

type TransformedTool struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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