Documentation
¶
Overview ¶
Package questions is Orb's shared human-question capability and native tool.
Index ¶
Constants ¶
View Source
const Kind = "questions"
View Source
const ToolName = "ask_user_question"
Variables ¶
This section is empty.
Functions ¶
func Extension ¶
func Extension() extensions.Factory
Types ¶
type Panel ¶
type Panel struct {
// contains filtered or unexported fields
}
Panel is shared by the local dialog and the remote conversation view.
func (*Panel) HandleInput ¶
func (*Panel) HandleMouse ¶
func (p *Panel) HandleMouse(event tui.MouseEvent) bool
func (*Panel) SetFocused ¶
func (*Panel) WantsMouseMotion ¶
type Request ¶
type Request struct {
Questions []Question `json:"questions"`
}
func (Request) ValidateReply ¶
type Result ¶
type Result struct {
Answers []Answer `json:"answers,omitempty"`
Cancelled bool `json:"cancelled,omitempty"`
}
func Ask ¶
func Ask(ctx context.Context, request Request, input extensions.InputHandler) (Result, error)
Ask uses the runtime's execution-bound input seam; it owns no queue or history.
Click to show internal directories.
Click to hide internal directories.