Add custom repr string for better notebook DX
This commit is contained in:
parent
286ede5fd3
commit
01c496ec2e
1 changed files with 3 additions and 0 deletions
|
|
@ -80,3 +80,6 @@ class Trace(Generic[T], HashableBaseModel):
|
||||||
"feedback_flat": self.feedback_flat,
|
"feedback_flat": self.feedback_flat,
|
||||||
"tags_flat": self.tags_flat,
|
"tags_flat": self.tags_flat,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def __repr__(self) -> str:
|
||||||
|
return f"Trace[{type(self.output).__name__}]({pformat(self.dict(), indent=2, compact=True)})"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue