output

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 *agentcore.ToolCall, endCalls []*agentcore.ToolCall, workingDir string) string

func FormatSubagentTool

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

func FormatToolDone

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

func FormatToolEnd

func FormatToolEnd(toolCall *agentcore.ToolCall) string

func FormatToolInput

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

func FormatToolStart

func FormatToolStart(toolCall *agentcore.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 *agentcore.ToolCall)

func (*OutputBuilder) AddToolStart

func (ob *OutputBuilder) AddToolStart(toolCall *agentcore.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