chat

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package chat is the interactive A2A chat TUI launched after `arctl run` brings an agent up. It speaks the A2A streaming protocol via trpc-a2a-go and renders user/agent turns + tool calls/results in a bubbletea model.

Resurrected from internal/cli/agent/tui (Phase 12 deletion); package renamed from `tui` to `chat` because it now lives under declarative/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchA2A

func LaunchA2A(ctx context.Context, agentName, agentURL string, verbose bool) error

LaunchA2A is a convenience wrapper that creates an A2A client against agentURL and starts the chat TUI. Used by `arctl run` after the agent passes its readiness probe.

func RunChat

func RunChat(agentRef string, sessionID string, sendFn SendMessageFn, verbose bool) error

RunChat starts the chat UI and blocks until the user exits.

Types

type SendMessageFn

type SendMessageFn func(ctx context.Context, params protocol.SendMessageParams) (<-chan protocol.StreamingMessageEvent, error)

SendMessageFn mirrors the A2A client's StreamMessage signature.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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