mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-17 01:42:43 -05:00
feat(guardrails): added guardrails block/tools and docs (#1605)
* Adding guardrails block * ack PR comments * cleanup checkbox in dark mode * cleanup * fix supabase tools
This commit is contained in:
@@ -2009,11 +2009,7 @@ export class Executor {
|
||||
|
||||
// Handle error outputs and ensure object structure
|
||||
const output: NormalizedBlockOutput =
|
||||
rawOutput && typeof rawOutput === 'object' && rawOutput.error
|
||||
? { error: rawOutput.error, status: rawOutput.status || 500 }
|
||||
: typeof rawOutput === 'object' && rawOutput !== null
|
||||
? rawOutput
|
||||
: { result: rawOutput }
|
||||
typeof rawOutput === 'object' && rawOutput !== null ? rawOutput : { result: rawOutput }
|
||||
|
||||
// Update the context with the execution result
|
||||
// Use virtual block ID for parallel executions
|
||||
|
||||
Reference in New Issue
Block a user