We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4694b2 commit 36009f9Copy full SHA for 36009f9
apps/sim/lib/core/utils/formatting.ts
@@ -191,6 +191,11 @@ export function safelyRenderValue(value: unknown): string {
191
}
192
193
if (typeof value === 'object') {
194
+ // Handle common structured output pattern {text: string, type?: string}
195
+ if ('text' in value && typeof (value as Record<string, unknown>).text === 'string') {
196
+ return (value as Record<string, unknown>).text as string
197
+ }
198
+
199
try {
200
return JSON.stringify(value)
201
} catch {
0 commit comments