Galileo
Search
⌃K

Schema

Submodules

llm_monitor.schema.transaction module

class TransactionRecord(**data)

Bases: BaseModel
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

latency_ms*: Optional[int]*

status_code*: Optional[int]*

input_text*: str*

output_text*: Optional[str]*

model*: str*

num_input_tokens*: Optional[int]*

num_output_tokens*: Optional[int]*

num_total_tokens*: Optional[int]*

finish_reason*: Optional[str]*

trace_id*: Optional[str]*

parent_trace_id*: Optional[str]*

output_logprobs*: Optional[Dict]*

created_at*: str*

tags*: Optional[List[str]]*

user_metadata*: Optional[Dict[str, Any]]*

temperature*: Optional[float]*

model_config*: ClassVar[ConfigDict]* = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields*: ClassVar[dict[str, FieldInfo]]* = {'created_at': FieldInfo(annotation=str, required=True), 'finish_reason': FieldInfo(annotation=Union[str, NoneType], required=False), 'input_text': FieldInfo(annotation=str, required=True), 'latency_ms': FieldInfo(annotation=Union[int, NoneType], required=False), 'model': FieldInfo(annotation=str, required=True), 'num_input_tokens': FieldInfo(annotation=Union[int, NoneType], required=False), 'num_output_tokens': FieldInfo(annotation=Union[int, NoneType], required=False), 'num_total_tokens': FieldInfo(annotation=Union[int, NoneType], required=False), 'output_logprobs': FieldInfo(annotation=Union[Dict, NoneType], required=False), 'output_text': FieldInfo(annotation=Union[str, NoneType], required=False), 'parent_trace_id': FieldInfo(annotation=Union[str, NoneType], required=False), 'status_code': FieldInfo(annotation=Union[int, NoneType], required=False), 'tags': FieldInfo(annotation=Union[List[str], NoneType], required=False), 'temperature': FieldInfo(annotation=Union[float, NoneType], required=False), 'trace_id': FieldInfo(annotation=Union[str, NoneType], required=False), 'user_metadata': FieldInfo(annotation=Union[Dict[str, Any], NoneType], required=False)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model._fields_ from Pydantic V1.

class TransactionRecordBatch(**data)

Bases: BaseModel
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

records*: List[TransactionRecord]*

model_config*: ClassVar[ConfigDict]* = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields*: ClassVar[dict[str, FieldInfo]]* = {'records': FieldInfo(annotation=List[TransactionRecord], required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model._fields_ from Pydantic V1.

Module contents

Last modified 1mo ago