types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Type       MessageType
	Content    string
	Sender     string     // Agent name for assistant messages
	ToolName   string     // Tool name for tool messages
	ToolCallID string     // Tool call ID for precise identification
	ToolStatus ToolStatus // Status for tool calls
	Arguments  string     // Arguments for tool calls
	Timestamp  int64
}

Message represents a single message in the chat

type MessageType

type MessageType int

MessageType represents different types of messages

const (
	MessageTypeUser MessageType = iota
	MessageTypeAssistant
	MessageTypeError
	MessageTypeSeparator
	MessageTypeToolCall
	MessageTypeToolResult
)

type ToolStatus

type ToolStatus int

ToolStatus represents the status of a tool call

const (
	ToolStatusPending ToolStatus = iota
	ToolStatusConfirmation
	ToolStatusRunning
	ToolStatusCompleted
	ToolStatusError
)

Jump to

Keyboard shortcuts

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