Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
resources.ResourceConfigBase `yaml:",inline"`
Text string `yaml:"text" validate:"required"`
}
Config represents the uninitialized textual resource configuration from YAML.
func (*Config) Initialize ¶
Initialize computes the size of the text and returns an initialized textual resource.
func (*Config) ResourceConfigType ¶
ResourceConfigType returns the resource type identifier.
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
SetDefaults applies system defaults for unspecified optional fields.
type Resource ¶
Resource represents the initialized textual resource that returns plain text payloads.
func (*Resource) GetDescription ¶ added in v1.16.0
GetDescription returns the frontmatter description for a SKILL.md, and the config description otherwise.
func (*Resource) GetMimeType ¶ added in v1.16.0
GetMimeType returns text/markdown for a SKILL.md, as SEP-2640 requires, and the configured MIME type otherwise.
func (*Resource) GetName ¶ added in v1.16.0
GetName returns the frontmatter name for a SKILL.md, and the config name otherwise.
func (*Resource) ToConfig ¶
func (r *Resource) ToConfig() resources.ResourceConfig
ToConfig returns the underlying uninitialized configuration.