trace
¶
CompletionRequestEvent
¶
Bases: TraceEventBase
A class representing a completion request event.
CompletionResponseEvent
¶
Bases: TraceEventBase
A class representing a completion response event.
metadata
class-attribute
instance-attribute
¶
The meta data of the event.
FunctionCallEvent
¶
Bases: TraceEventBase
A class representing a function call event.
FunctionReturnEvent
¶
Bases: TraceEventBase
A class representing a function return event.
metadata
class-attribute
instance-attribute
¶
The meta data of the event.
GenerationInitEvent
¶
Bases: TraceEventBase
A class representing a generation init event.
GenerationResponseEvent
¶
Bases: TraceEventBase
A class representing a generation response event.
metadata
class-attribute
instance-attribute
¶
The meta data of the event.
TraceEngineBase
¶
Bases: ABC
A base class for trace engines.
min_timestamp
cached
property
¶
min_timestamp: float
The minimum time stamp of the events in the trace.
trace_nodes
abstractmethod
property
¶
The dictionary of trace nodes in the trace.
append
abstractmethod
¶
append(event: TraceEventBase) -> None
TraceEventBase
¶
Bases: BaseModel
A base class for trace events.
TraceNode
¶
Bases: BaseModel
The node of a trace tree containing information about trace events.
args
class-attribute
instance-attribute
¶
The arguments of the trace node.
children
class-attribute
instance-attribute
¶
The children of the trace node.
metadata
class-attribute
instance-attribute
¶
The meta data of the trace node.
parent
class-attribute
instance-attribute
¶
The parent of the trace node.