call_logging

CallLog

Inherits from: BaseModel


set_call_log_save_path

set_call_log_save_path(path: Path)

get_call_logs

get_call_logs(model: Optional[str]) -> List[CallLog]

get_total_costs

get_total_costs(model: Optional[str]) -> float

get_total_input_tokens

get_total_input_tokens(model: Optional[str]) -> int

get_total_output_tokens

get_total_output_tokens(model: Optional[str]) -> int

get_total_tokens

get_total_tokens(model: Optional[str]) -> int

save_call_log

save_call_log(path: Path, combine_with_existing: bool)

load_call_log_file

load_call_log_file(path: Optional[Path]) -> List[CallLog]