Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

Collapsed I/O on observations

Marc Klingenb7bc152b8ce7
diff --git a/src/components/trace/ObservationPreview.tsx b/src/components/trace/ObservationPreview.tsx
index 2730aa9695..9661c654f9 100644
--- a/src/components/trace/ObservationPreview.tsx
+++ b/src/components/trace/ObservationPreview.tsx
@@ -83,12 +83,12 @@ export const ObservationPreview = (props: {
<JSONView
title={observation.type === "GENERATION" ? "Prompt" : "Input"}
json={observation.input}
- scrollable
+ defaultCollapsed
/>
<JSONView
title={observation.type === "GENERATION" ? "Completion" : "Output"}
json={observation.output}
- scrollable
+ defaultCollapsed
/>
<JSONView title="Status Message" json={observation.statusMessage} />
<JSONView title="Metadata" json={observation.metadata} />
diff --git a/src/components/ui/code.tsx b/src/components/ui/code.tsx
index b6c1f9621d..2b661a967b 100644
--- a/src/components/ui/code.tsx
+++ b/src/components/ui/code.tsx
@@ -111,7 +111,7 @@ export function CodeView(props: {
<code
className={cn(
"relative flex-1 whitespace-pre-wrap break-all px-4 py-3 font-mono text-xs",
- isCollapsed ? `line-clamp-4` : "block",
+ isCollapsed ? `line-clamp-6` : "block",
props.scrollable ? "max-h-60 overflow-y-scroll" : undefined
)}
>