Documentation
¶
Overview ¶
Package tagreplace is the built-in tag_replace plugin: before the provider call it expands {{gomodel.<tag>}} placeholders in prompt text into request facts such as the resolved model, the user path, or the current date.
Index ¶
- Constants
- func New() pluginapi.Plugin
- type Plugin
- func (p *Plugin) Close(context.Context) error
- func (p *Plugin) Init(_ context.Context, raw json.RawMessage, _ pluginapi.Host) error
- func (p *Plugin) Manifest() pluginapi.Manifest
- func (p *Plugin) OnPrompt(_ context.Context, x *pluginapi.Exchange) (pluginapi.Decision, error)
- func (p *Plugin) Summarize(raw json.RawMessage) string
Constants ¶
View Source
const DefaultTimezone = "UTC"
DefaultTimezone is the zone the date tags are rendered in.
View Source
const Name = "tag_replace"
Name is the manifest name of the plugin.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is one configured tag_replace instance.
Click to show internal directories.
Click to hide internal directories.