Documentation
¶
Index ¶
- Constants
- type Component
- func (t *Component) GetInfo() module.ComponentInfo
- func (t *Component) Handle(ctx context.Context, _ module.Handler, port string, msg interface{}) module.Result
- func (t *Component) Instance() module.Component
- func (t *Component) OnSettings(_ context.Context, msg any) error
- func (t *Component) Ports() []module.Port
- type Control
- type InMessage
- type Settings
Constants ¶
View Source
const ( ComponentName = "display" InPort string = "in" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
func (*Component) GetInfo ¶
func (t *Component) GetInfo() module.ComponentInfo
type Control ¶
type Control struct {
Text string `json:"text" readonly:"true" format:"markdown" title:"" description:""`
}
Control is the dashboard surface: the text, rendered as prose and not offered for editing.
format:"markdown" is what makes the editor render it instead of putting it in a single-line input, where a paragraph of model output is unreadable and pretends to be typeable. readonly says the obvious thing out loud.
type InMessage ¶
type InMessage struct {
Text string `json:"text" required:"true" title:"Text" description:"What to show. Markdown is rendered."`
}
InMessage is what to show. A single named field, deliberately: a display panel exists to answer one question, and a flow that wants to surface three things should say which three rather than pushing its whole state at a person.
Click to show internal directories.
Click to hide internal directories.