trulens.core.schema.base¶
trulens.core.schema.base
¶
Common/shared serializable classes.
Attributes¶
MAX_DILL_SIZE
module-attribute
¶
MAX_DILL_SIZE: int = 1024 * 1024
Max size in bytes of pickled objects.
Classes¶
Cost
¶
Bases: SerialModel
, BaseModel
Costs associated with some call or set of calls.
Attributes¶
n_successful_requests
class-attribute
instance-attribute
¶
n_successful_requests: int = 0
Number of successful requests.
n_stream_chunks
class-attribute
instance-attribute
¶
n_stream_chunks: int = 0
In streaming mode, number of chunks produced.
n_prompt_tokens
class-attribute
instance-attribute
¶
n_prompt_tokens: int = 0
Number of prompt tokens supplied.
n_completion_tokens
class-attribute
instance-attribute
¶
n_completion_tokens: int = 0
Number of completion tokens generated.
n_cortext_guardrails_tokens
class-attribute
instance-attribute
¶
n_cortext_guardrails_tokens: int = 0
Number of guardrails tokens generated. i.e. available in Cortex endpoint.