narrate

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package narrate produces human-friendly, emoji-rich transition messages describing what the agent is doing. Uses template-based descriptions; LLM-powered enrichment can be layered on as a future enhancement.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Narrator

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

Narrator produces engaging progress messages for tool calls and thinking.

func New

func New(enabled bool) *Narrator

New creates a Narrator. When enabled, produces emoji-rich template messages describing what the agent is doing in human-friendly language. If enabled is false, all methods return empty strings (verbose mode).

func (*Narrator) ThinkingMessage

func (n *Narrator) ThinkingMessage(thought string) string

ThinkingMessage returns a narration of the thinking/reasoning phase.

func (*Narrator) ToolCallMessage

func (n *Narrator) ToolCallMessage(name, args string) string

ToolCallMessage returns a human-friendly description of a tool invocation.

Jump to

Keyboard shortcuts

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