output

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCompactionCancelledStatus

func AddCompactionCancelledStatus(output *OutputBuilder, status string)

func AddCompactionErrorStatus

func AddCompactionErrorStatus(output *OutputBuilder, status string)

func AddCompactionSuccessStatus

func AddCompactionSuccessStatus(output *OutputBuilder, status string)

func FormatFoldedReads added in v0.51.0

func FormatFoldedReads(startCall *llm.ToolCall, endCalls []*llm.ToolCall, workingDir string) string

func FormatSubagentTool

func FormatSubagentTool(agent string, startCall, endCall *llm.ToolCall, workingDir string) string

func FormatToolDone

func FormatToolDone(startCall, endCall *llm.ToolCall, workingDir string) string

func FormatToolEnd

func FormatToolEnd(toolCall *llm.ToolCall) string

func FormatToolInput

func FormatToolInput(toolName string, input map[string]any, workingDir string) string

func FormatToolStart

func FormatToolStart(toolCall *llm.ToolCall, workingDir string) string

Types

type OutputBuilder

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

func NewOutputBuilder

func NewOutputBuilder(width int, workingDir string) *OutputBuilder

func (*OutputBuilder) AddAssistantResponse

func (ob *OutputBuilder) AddAssistantResponse(response string, assistantStyle lipgloss.Style)

func (*OutputBuilder) AddEmptyLine

func (ob *OutputBuilder) AddEmptyLine()

func (*OutputBuilder) AddError

func (ob *OutputBuilder) AddError(err string, errorStyle lipgloss.Style)

func (*OutputBuilder) AddLine

func (ob *OutputBuilder) AddLine(line string)

func (*OutputBuilder) AddStyledLine

func (ob *OutputBuilder) AddStyledLine(content string, style lipgloss.Style)

func (*OutputBuilder) AddToolEnd

func (ob *OutputBuilder) AddToolEnd(toolCall *llm.ToolCall)

func (*OutputBuilder) AddToolStart

func (ob *OutputBuilder) AddToolStart(toolCall *llm.ToolCall)

func (*OutputBuilder) AddUserInput

func (ob *OutputBuilder) AddUserInput(input string, promptStyle lipgloss.Style)

func (*OutputBuilder) GetLines

func (ob *OutputBuilder) GetLines() []string

func (*OutputBuilder) IsEmpty

func (ob *OutputBuilder) IsEmpty() bool

func (*OutputBuilder) Join

func (ob *OutputBuilder) Join() string

func (*OutputBuilder) SetLines

func (ob *OutputBuilder) SetLines(lines []string)

func (*OutputBuilder) SetWidth

func (ob *OutputBuilder) SetWidth(width int)

Jump to

Keyboard shortcuts

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