defaulttool

package
v1.9.17 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	msg *types.Message,
	renderer *glamour.TermRenderer,
	_ *service.SessionState,
) layout.Model

New creates a new default tool component.

Types

type Component

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

Component is the fallback component for rendering tool calls that don't have a specialized component registered. It provides a standard visualization with tool name, arguments, and results.

func (*Component) Init

func (c *Component) Init() tea.Cmd

func (*Component) SetSize

func (c *Component) SetSize(width, height int) tea.Cmd

func (*Component) Update

func (c *Component) Update(msg tea.Msg) (layout.Model, tea.Cmd)

func (*Component) View

func (c *Component) View() string

Jump to

Keyboard shortcuts

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