ui

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StepChatForwardFunc

func StepChatForwardFunc(p *tea.Program) func(msg *message.Message) error

StepChatForwardFunc is a function that forwards watermill messages to the UI by trasnforming them into bubbletea messages and injecting them into the program `p`.

Types

type StepBackend

type StepBackend struct {
	// contains filtered or unexported fields
}

func NewStepBackend

func NewStepBackend(step chat.Step) *StepBackend

func (*StepBackend) Interrupt

func (s *StepBackend) Interrupt()

func (*StepBackend) IsFinished

func (s *StepBackend) IsFinished() bool

func (*StepBackend) Kill

func (s *StepBackend) Kill()

func (*StepBackend) Start

func (s *StepBackend) Start(ctx context.Context, msgs []*conversation.Message) (tea.Cmd, error)

Jump to

Keyboard shortcuts

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