Documentation ¶
Index ¶
- type Example
- type Prompt
- func (prompt *Prompt) Execute(ai ai.AI, input []string, prefix string) (<-chan Result, int, error)
- func (prompt *Prompt) Prompts(input []string, prefix string) (prompts []string, err error)
- func (prompt *Prompt) SetAITimeout(d time.Duration) *Prompt
- func (prompt *Prompt) SetExample(ex Example) *Prompt
- func (prompt *Prompt) SetInputN(n int) *Prompt
- func (prompt *Prompt) SetTemplate(t *template.Template) *Prompt
- func (prompt *Prompt) SetWorkers(n int) *Prompt
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompt ¶
type Prompt struct {
// contains filtered or unexported fields
}
func (*Prompt) SetExample ¶
func (*Prompt) SetWorkers ¶
Click to show internal directories.
Click to hide internal directories.