View models#
Trace
#
Bases: Generic[T]
, HashableBaseModel
Universal structure for storing prediction traces and training data.
Attributes:
Name | Type | Description |
---|---|---|
trace_id |
str
|
UUID4 identifier for uniquely referring to a trace. |
created |
str
|
Timestamp of its (original) construction. |
original_execution_time_ms |
float
|
Wall-time elapsed while its generating TracingContext was alive. |
logged_values |
Dict[str, Any]
|
Values persisted through using |
models |
List[Model]
|
Marks left by each encountered |
exception |
Optional[str]
|
Exception description if any was encountered. |
output |
Optional[T]
|
Return value of the function wrapped by GreatAI. |
feedback |
Any
|
Feedback obtained using the REST API of |
tags |
List[str]
|
Tags used for filtering traces. Contains the name of the original
function, value of |
Source code in great_ai/views/trace.py
RouteConfig
#
Bases: BaseModel