Documentation ¶
Index ¶
- Constants
- func GetIntroduction(client aiutil.Client, ctx context.Context) (string, error)
- func HandleUserMessage(client aiutil.Client, conv *aiutil.Conversation, ctx context.Context, ...) error
- func ManageResourceSelection(userInput string) (string, error)
- func StartChat(ctx context.Context, client aiutil.Client, conv *aiutil.Conversation) error
- func StartConversationCLI(client aiutil.Client, conv *aiutil.Conversation) error
- type MokiModel
- type ResourceInputModel
- type ResourceSelectionModel
Constants ¶
View Source
const ( MaxConversationTime = time.Minute * 30 SingleRequestTime = time.Minute * 1 MokiHeader = `` /* 170-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func GetIntroduction ¶
GetIntroduction sends the initial message to start the conversation
func HandleUserMessage ¶
func HandleUserMessage(client aiutil.Client, conv *aiutil.Conversation, ctx context.Context, userInput string) error
handleUserMessage handles the user's message
func ManageResourceSelection ¶
func StartConversationCLI ¶
func StartConversationCLI(client aiutil.Client, conv *aiutil.Conversation) error
StartConversationCLI starts a conversation with Moki via the CLI
Types ¶
type ResourceInputModel ¶
func (ResourceInputModel) Init ¶
func (m ResourceInputModel) Init() tea.Cmd
func (ResourceInputModel) View ¶
func (m ResourceInputModel) View() string
type ResourceSelectionModel ¶
func (ResourceSelectionModel) Init ¶
func (m ResourceSelectionModel) Init() tea.Cmd
func (ResourceSelectionModel) View ¶
func (m ResourceSelectionModel) View() string
Click to show internal directories.
Click to hide internal directories.