Documentation
¶
Index ¶
- Constants
- func GetIntroduction(client aiutil.Client, ctx context.Context) (string, error)
- func HandleUserMessage(client aiutil.Client, conv *aiutil.Conversation, ctx context.Context, ...) (bool, 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 an introduction request to Moki and returns the response.
func HandleUserMessage ¶
func HandleUserMessage(client aiutil.Client, conv *aiutil.Conversation, ctx context.Context, userInput string) (bool, error)
HandleUserMessage handles the user's message and returns true if the user wants to exit.
func ManageResourceSelection ¶
func StartChat ¶
StartChat starts a chat session with Moki It handles user input and manages the conversation flow.
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.