modes

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 9 Imported by: 1 module, 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

Overview

Package modes holds the assistant's words: how it talks on each channel (phone, whatsapp, atc, agent, guest, guest-call), its standing prompts (hub, guests-desk) and the short lines atc puts in its conversation (lines.json). A file of the same name in Dir takes the place of the built-in one, so a user's own wording, language and rules live outside the code. A lines.json in Dir overrides key by key.

Index

Constants

This section is empty.

Variables

View Source
var (
	Dir string
	// User and Assistant name the two in the built-in text ({{user}}, {{assistant}}, and capitalized at a sentence's
	// start); a file in Dir is the user's own words and is left as written.
	User, Assistant string
)

Functions

func Line

func Line(key string) string

func Rendered

func Rendered() string

Rendered is every text the assistant gets with Dir applied, in a stable order: what `atc prompts` prints and checks, so a change to what a user's assistant is told shows up as a diff.

func Text

func Text(name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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