Documentation
¶
Overview ¶
Code generated; DO NOT EDIT.
Index ¶
Constants ¶
View Source
const Version_KSDK3M8 = true
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyResolver ¶
type KeyResolver interface {
Resolve(string)
Reset()
}
type ModelReporter ¶
type ModelReporter interface {
RegisterFunc(func(ts time.Time, tx ModelTx) bool)
Tx(func(tx ModelTx))
TxAt(time.Time, func(tx ModelTx))
ModelTx
}
func NewNoopModelReporter ¶
func NewNoopModelReporter() ModelReporter
type ModelTx ¶
type ModelTx interface {
ReportInferencePromptTokens(v uint64)
ReportInferencePromptCacheTokens(v uint64)
ReportInferenceCompletionTokens(v uint64)
ReportInferenceTotalTokens(v uint64)
ReportInferenceCacheCreateTokens(v uint64)
ReportInferenceCacheReadTokens(v uint64)
ReportSttDuration(v uint32)
ReportTtsChars(v uint32)
}
type ProjectReporter ¶
type ProjectReporter interface {
RegisterFunc(func(ts time.Time, tx ProjectTx) bool)
Tx(func(tx ProjectTx))
TxAt(time.Time, func(tx ProjectTx))
WithProvider(name string) ProviderReporter
WithDeferredProvider() (ProviderReporter, KeyResolver)
ProjectTx
}
func NewNoopProjectReporter ¶
func NewNoopProjectReporter() ProjectReporter
type ProviderReporter ¶
type ProviderReporter interface {
RegisterFunc(func(ts time.Time, tx ProviderTx) bool)
Tx(func(tx ProviderTx))
TxAt(time.Time, func(tx ProviderTx))
WithModel(name string) ModelReporter
WithDeferredModel() (ModelReporter, KeyResolver)
ProviderTx
}
func NewNoopProviderReporter ¶
func NewNoopProviderReporter() ProviderReporter
type ProviderTx ¶
type ProviderTx interface{}
type Reporter ¶
type Reporter interface {
WithProject(id string) ProjectReporter
WithDeferredProject() (ProjectReporter, KeyResolver)
}
func NewNoopReporter ¶
func NewNoopReporter() Reporter
Click to show internal directories.
Click to hide internal directories.