Documentation
¶
Overview ¶
Package templates holds ready-made agents (summarizer, tagger, moderator, translator). A template renders an agent definition from a few parameters; the definition is then reviewed and saved like any agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnknown = fmt.Errorf("unknown template")
ErrUnknown is returned for an unknown template.
Functions ¶
Types ¶
type Param ¶
type Param struct {
Key string `json:"key"`
Label string `json:"label"`
// Type: collection, field (an attribute of the collection param),
// fields (several), text, number or bool.
Type string `json:"type"`
Required bool `json:"required"`
Default any `json:"default,omitempty"`
Help string `json:"help,omitempty"`
Types []string `json:"types,omitempty"` // field/fields: allowed attribute types
// Localized (field/fields): only localized attributes.
Localized bool `json:"localized,omitempty"`
}
Param is one input of a template.