Skip to content

Usage

Usage

Bases: ModelWithSchema

__tablename__ = 'usages' class-attribute instance-attribute

completion_tokens instance-attribute

conversation_id = mapped_column(ForeignKey('conversation_metadatas.id')) class-attribute instance-attribute

id = mapped_column(primary_key=True) class-attribute instance-attribute

prompt_tokens instance-attribute

total_cost instance-attribute

total_tokens instance-attribute

__repr__()

model_from_schema(schema) classmethod

to_schema()

to_text()