TracePublic¶
- class opik.rest_api.types.trace_public.TracePublic(*, id: str | None = None, project_id: str | None = None, name: str, start_time: datetime, end_time: datetime | None = None, input: Dict[str, Any] | None = None, output: Dict[str, Any] | None = None, metadata: Dict[str, Any] | None = None, tags: List[str] | None = None, usage: Dict[str, int] | None = None, created_at: datetime | None = None, last_updated_at: datetime | None = None, created_by: str | None = None, last_updated_by: str | None = None, feedback_scores: List[FeedbackScorePublic] | None = None, **extra_data: Any)¶
Bases:
BaseModel
- id: str | None¶
- project_id: str | None¶
- name: str¶
- start_time: datetime¶
- end_time: datetime | None¶
- input: Dict[str, Any] | None¶
- output: Dict[str, Any] | None¶
- metadata: Dict[str, Any] | None¶
- tags: List[str] | None¶
- usage: Dict[str, int] | None¶
- created_at: datetime | None¶
- last_updated_at: datetime | None¶
- created_by: str | None¶
- last_updated_by: str | None¶
- feedback_scores: List[FeedbackScorePublic] | None¶
- json(**kwargs: Any) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- dict(**kwargs: Any) Dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.