types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const OptionConfirm = "confirm"

OptionConfirm is the sentinel value in Options indicating a prompt supports confirmation.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Type  ActionType
	Value string // for ActionSelect: "1", "2", "3", etc.
}

Action is a platform-agnostic control action parsed from user input. Backend parses platform-specific input (text "/yes", button callback, etc.) into this unified representation.

type ActionType

type ActionType int

ActionType identifies the kind of user control action.

const (
	ActionNone        ActionType = iota
	ActionConfirm                // yes/allow/ok/enter
	ActionDeny                   // no/deny/cancel
	ActionSelect                 // /select N — numbered selection
	ActionPassthrough            // forward raw input to agent terminal
)

type MediaFile

type MediaFile struct {
	Path     string
	Type     MediaType
	FileName string // original filename (for file attachments)
}

MediaFile is a downloaded media attachment with a local path.

type MediaType

type MediaType string

MediaType identifies the type of a media attachment.

const (
	MediaTypeImage MediaType = "image"
	MediaTypeVoice MediaType = "voice"
	MediaTypeVideo MediaType = "video"
	MediaTypeFile  MediaType = "file"
)

Jump to

Keyboard shortcuts

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