Documentation
¶
Overview ¶
Package action_result_schema provides an example of creating an action with structured output using result schema. It demonstrates how to define a result schema in action.yaml and return structured data that can be output as JSON with --json flag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
ID int `json:"id"`
Name string `json:"name"`
CreatedAt string `json:"created_at"`
}
Item represents a generated item.
type Plugin ¶
type Plugin struct{}
Plugin is launchr.Plugin providing example plugin action with result schema.
func (*Plugin) DiscoverActions ¶
DiscoverActions implements launchr.ActionDiscoveryPlugin interface.
func (*Plugin) PluginInfo ¶
func (p *Plugin) PluginInfo() launchr.PluginInfo
PluginInfo implements launchr.Plugin interface.
Click to show internal directories.
Click to hide internal directories.