Documentation
¶
Index ¶
- func AddCompactionCancelledStatus(output *OutputBuilder, status string)
- func AddCompactionErrorStatus(output *OutputBuilder, status string)
- func AddCompactionSuccessStatus(output *OutputBuilder, status string)
- func FormatSubagentTool(agent string, startCall, endCall *llm.ToolCall, workingDir string) string
- func FormatToolDone(startCall, endCall *llm.ToolCall, workingDir string) string
- func FormatToolEnd(toolCall *llm.ToolCall) string
- func FormatToolInput(toolName string, input map[string]any, workingDir string) string
- func FormatToolStart(toolCall *llm.ToolCall, workingDir string) string
- type OutputBuilder
- func (ob *OutputBuilder) AddAssistantResponse(response string, assistantStyle lipgloss.Style)
- func (ob *OutputBuilder) AddEmptyLine()
- func (ob *OutputBuilder) AddError(err string, errorStyle lipgloss.Style)
- func (ob *OutputBuilder) AddLine(line string)
- func (ob *OutputBuilder) AddStyledLine(content string, style lipgloss.Style)
- func (ob *OutputBuilder) AddToolEnd(toolCall *llm.ToolCall)
- func (ob *OutputBuilder) AddToolStart(toolCall *llm.ToolCall)
- func (ob *OutputBuilder) AddUserInput(input string, promptStyle lipgloss.Style)
- func (ob *OutputBuilder) GetLines() []string
- func (ob *OutputBuilder) IsEmpty() bool
- func (ob *OutputBuilder) Join() string
- func (ob *OutputBuilder) SetLines(lines []string)
- func (ob *OutputBuilder) SetWidth(width int)
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 FormatSubagentTool ¶
func FormatToolDone ¶
func FormatToolEnd ¶
func FormatToolInput ¶
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)
Click to show internal directories.
Click to hide internal directories.