event

package
v0.0.0-...-d48bf00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStack

func AddStack(stack tea.Model, title string) tea.Cmd

func AgentSelection

func AgentSelection(executor *agents.Executor, name string) tea.Cmd

func Cancel

func Cancel() tea.Msg

func ClearScreen

func ClearScreen() tea.Msg

func DoneGenerating

func DoneGenerating(userMsgId, responseMsgId int64) tea.Cmd

func Error

func Error(err error) tea.Cmd

func FileSelection

func FileSelection(files []string, multiMode bool) tea.Cmd

func RemoveStack

func RemoveStack(stack tea.Model) tea.Cmd

func SetChatTextview

func SetChatTextview(content string) tea.Cmd

func StartSpinner

func StartSpinner() tea.Msg

func StopSpinner

func StopSpinner() tea.Msg

func Transition

func Transition(title string) tea.Cmd

func UpdateAiResponse

func UpdateAiResponse(content string) tea.Cmd

func UpdateChatContent

func UpdateChatContent(userPromt, content string) tea.Cmd

func UpdateUserPrompt

func UpdateUserPrompt(content string) tea.Cmd

Types

type AddStackEvent

type AddStackEvent struct {
	Stack tea.Model
	Title string
}

type AgentSelectionEvent

type AgentSelectionEvent struct {
	Executor *agents.Executor
	Name     string
}

type CancelEvent

type CancelEvent struct{}

type ClearScreenEvent

type ClearScreenEvent struct{}

type DoneGeneratingEvent

type DoneGeneratingEvent struct {
	UserMsgId     int64
	ResponseMsgId int64
}

type FileSelectionEvent

type FileSelectionEvent struct {
	Files     []string
	MultiMode bool
}

type RemoveStackEvent

type RemoveStackEvent struct {
	Stack tea.Model
}

type SetChatTextviewEvent

type SetChatTextviewEvent struct {
	Content string
}

type StartSpinnerEvent

type StartSpinnerEvent struct{}

type StopSpinnerEvent

type StopSpinnerEvent struct{}

type TransitionEvent

type TransitionEvent struct {
	Title string
}

type UpdateAiResponseEvent

type UpdateAiResponseEvent UpdateChatContentEvent

type UpdateChatContentEvent

type UpdateChatContentEvent struct {
	UserPrompt string
	Content    string
}

type UpdateUserPromptEvent

type UpdateUserPromptEvent UpdateChatContentEvent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL