common

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumption

type Consumption interface {
	Add(Consumption)
	Summary() ConsumptionSummary
}

type ConsumptionSummary

type ConsumptionSummary map[string]uint64

func NewCachedConsumption

func NewCachedConsumption(input, cached, output uint64) ConsumptionSummary

func NewSimpleConsumption

func NewSimpleConsumption(input, output uint64) ConsumptionSummary

type Model

type Model interface {
	llms.Model

	Close() error
	PatchTools(*[]llms.Tool) error
	ConsumptionOf(*llms.ContentResponse) Consumption
}

type UnknownConsumption

type UnknownConsumption struct{}

func (*UnknownConsumption) Add

func (u *UnknownConsumption) Add(add Consumption)

func (*UnknownConsumption) Summary

Jump to

Keyboard shortcuts

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