llmobserve

package
v0.83.260826 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopicMilestone = "llm.response.milestone"
	TopicUsage     = "llm.response.usage"
	TopicObserved  = "llm.response.observed"
	TopicFailed    = "llm.response.failed"
)
View Source
const Name = "llmobserve"

Variables

This section is empty.

Functions

This section is empty.

Types

type Limits

type Limits struct {
	MaxSSEMetadataBytes int `json:"max-sse-metadata-bytes,omitempty"`
	MaxRetainedBytes    int `json:"max-retained-bytes,omitempty"`
	MaxNestingDepth     int `json:"max-nesting-depth,omitempty"`
	MaxObjectMembers    int `json:"max-object-members,omitempty"`
	MaxKeyBytes         int `json:"max-key-bytes,omitempty"`
}

type Module

type Module struct{}

func New

func New() *Module

func (*Module) CompileProgram

func (*Module) CompileProgram(raw jsontext.Value) (module.Binding, error)

func (*Module) Lifetime

func (*Module) Lifetime() module.Lifetime

func (*Module) Name

func (*Module) Name() string

type Observation

type Observation string
const (
	ObserveUsage       Observation = "usage"
	ObservePerformance Observation = "performance"
)

type Spec

type Spec struct {
	Protocol llmobserve.Protocol `json:"protocol"`
	Observe  []Observation       `json:"observe"`
	Limits   Limits              `json:"limits,omitempty"`
}

Jump to

Keyboard shortcuts

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