usage

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Arithmetic of the usage counters of sessions: what a session took since an earlier reading, and its own model calls apart from those of its helper models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty(used *sessionsv1.Usage) bool

Whether the usage counts nothing

func Since

func Since(now, before *sessionsv1.Usage) *sessionsv1.Usage

What now holds past before: each counter and cost less before's, the status, source and pricing of the cost those of now; all of now when before is nil

func Split

A session's whole usage split by who made the calls: its own model calls, the turns the voice chat model ran counted among them; what each task of the helper models took, the tasks that took nothing left out; and the helpers' together. The whole counts the helpers' calls too

func Sum

func Sum(first *sessionsv1.Usage, rest ...*sessionsv1.Usage) *sessionsv1.Usage

Every counter and cost of the usages added up, the status, source and pricing of the cost those of the first

Types

This section is empty.

Jump to

Keyboard shortcuts

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