TraceData¶
- class opik.api_objects.trace.TraceData(id: str = <factory>, name: str | None = None, start_time: ~datetime.datetime | None = <factory>, end_time: ~datetime.datetime | None = None, metadata: ~typing.Dict[str, ~typing.Any] | None = None, input: ~typing.Dict[str, ~typing.Any] | None = None, output: ~typing.Dict[str, ~typing.Any] | None = None, tags: ~typing.List[str] | None = None, feedback_scores: ~typing.List[~opik.types.FeedbackScoreDict] | None = None, project_name: str | None = None, created_by: ~typing.Literal['evaluation'] | None = None)¶
Bases:
object
The TraceData object is returned when calling
opik.opik_context.get_current_trace_data()
from a tracked function.- id: str¶
- name: str | None = None¶
- start_time: datetime | None¶
- end_time: datetime | None = None¶
- metadata: Dict[str, Any] | None = None¶
- input: Dict[str, Any] | None = None¶
- output: Dict[str, Any] | None = None¶
- tags: List[str] | None = None¶
- feedback_scores: List[FeedbackScoreDict] | None = None¶
- project_name: str | None = None¶
- created_by: Literal['evaluation'] | None = None¶