response

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Completion

type Completion struct {
	Content     string
	Thoughts    string
	Model       string
	Usage       Usage
	RequestLog  Logging
	RawRequest  []byte
	RawResponse []byte
}

type Event

type Event struct {
	Timestamp   time.Time
	Description string
}

type Logging

type Logging struct {
	Completed bool
	Start     time.Time
	End       time.Time
	Events    []Event
	Model     models.Model
	SystemMsg string
	UserMsg   string
	Response  string
}

type Usage

type Usage struct {
	PromptTokens     int
	CompletionTokens int
	TotalTokens      int
}

Jump to

Keyboard shortcuts

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