api

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 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
	Text string
}

func NewAssistantMessage

func NewAssistantMessage(text string) Message

func NewErrorMessage

func NewErrorMessage(text string) Message

func NewSystemMessage

func NewSystemMessage(text string) Message

func NewToolMessage

func NewToolMessage(text string) Message

func NewUserMessage

func NewUserMessage(text string) Message

func (*Message) Role

func (m *Message) Role() string

type MessageType

type MessageType string
const (
	MessageTypeSystem    MessageType = "system"
	MessageTypeUser      MessageType = "user"
	MessageTypeAssistant MessageType = "assistant"
	MessageTypeTool      MessageType = "tool"
	MessageTypeError     MessageType = "error"
)

Jump to

Keyboard shortcuts

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