Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Overview

Package types contains shared type definitions used across the gollm library. It helps avoid import cycles while providing common data structures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryMessage

type MemoryMessage struct {
	Role         string                 // Role of the message sender (e.g., "user", "assistant")
	Content      string                 // The actual message content
	Tokens       int                    // Number of tokens in the message
	CacheControl string                 // Caching strategy for this message ("ephemeral", "persistent", etc.)
	Metadata     map[string]interface{} // Additional provider-specific metadata
}

MemoryMessage represents a single message in the conversation history. It includes the role of the speaker, the content of the message, and the number of tokens in the message for efficient memory management.

Jump to

Keyboard shortcuts

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