struct PromptBudgetCheck::Report

Defined in:

prompt_budget_check.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(prompts : Array(PromptBudgetCheck::Prompt), settings : PromptBudgetCheck::Settings) #

[View source]

Instance Method Detail

def count(status : String) : Int32 #

[View source]
def longest : Prompt #

Longest by estimated tokens; ties go to the alphabetically first id.


[View source]
def prompts : Array(Prompt) #

[View source]
def settings : Settings #

[View source]
def total_tokens : Int64 #

[View source]