Documentation
¶
Index ¶
- Constants
- 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 ToolAllowlistData
Constants ¶
View Source
const PluginName = "tool_allowlist"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ToolAllowlistData ¶
type ToolAllowlistData struct {
Provider string `json:"provider"`
ToolsRequested []string `json:"tools_requested"`
ToolsAllowed []string `json:"tools_allowed"`
ToolsRemoved []string `json:"tools_removed"`
Action string `json:"action"`
OnEmpty string `json:"on_empty,omitempty"`
Decision string `json:"decision"`
}
Click to show internal directories.
Click to hide internal directories.