Documentation
¶
Index ¶
- Constants
- type InjectedOutcome
- type Plugin
- func (p *Plugin) Execute(_ context.Context, in appplugins.ExecInput) (*appplugins.Result, error)
- func (p *Plugin) MandatoryStages() []policy.Stage
- func (p *Plugin) MutatesMetadata() bool
- func (p *Plugin) MutatesRequestBody() bool
- func (p *Plugin) MutatesResponseBody() bool
- func (p *Plugin) Name() string
- func (p *Plugin) SupportedModes() []policy.Mode
- func (p *Plugin) SupportedStages() []policy.Stage
- func (p *Plugin) ValidateConfig(settings map[string]any) error
- type ToolTransformData
- type TransformedTool
Constants ¶
View Source
const PluginName = "tool_definition_transformation"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InjectedOutcome ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Execute ¶
func (p *Plugin) Execute(_ context.Context, in appplugins.ExecInput) (*appplugins.Result, error)
func (*Plugin) MandatoryStages ¶
func (*Plugin) MutatesMetadata ¶
func (*Plugin) MutatesRequestBody ¶
func (*Plugin) MutatesResponseBody ¶
func (*Plugin) SupportedModes ¶
func (*Plugin) SupportedStages ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.