Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOptions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func BuildFromConfig ¶
func BuildFromConfig(cfg *config.Config) (ctrl *Controller, err error)
func (*Controller) AppMounted ¶
func (c *Controller) AppMounted()
AppMounted is called when the frontend application is mounted (decided by the frontend itself)
func (*Controller) GetApplicationConfig ¶
func (c *Controller) GetApplicationConfig() config.Config
func (*Controller) LLMAsk ¶
func (c *Controller) LLMAsk(args LLMAskArgs) (string, error)
func (*Controller) LLMInterrupt ¶
func (c *Controller) LLMInterrupt() (err error)
type LLMAskArgs ¶
type LLMAskArgs struct {
History LLMMessages
}
type LLMMessage ¶
type LLMMessages ¶
type LLMMessages []LLMMessage
func (LLMMessages) ToMessageContent ¶
func (m LLMMessages) ToMessageContent(systemPrompt string) []llms.MessageContent
Click to show internal directories.
Click to hide internal directories.