We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ca0da commit 2ac0d04Copy full SHA for 2ac0d04
1 file changed
apps/sim/executor/handlers/mothership/mothership-handler.ts
@@ -63,9 +63,12 @@ function formatMothershipBlockOutput(
63
): NormalizedBlockOutput {
64
const formattedList = (result.toolCalls || []).map((tc: Record<string, unknown>) => ({
65
name: typeof tc.name === 'string' ? tc.name : String(tc.name ?? ''),
66
- arguments: tc.params && typeof tc.params === 'object' ? tc.params : {},
67
- result: tc.result,
68
- error: tc.error,
+ arguments: (tc.params && typeof tc.params === 'object' ? tc.params : {}) as Record<
+ string,
+ unknown
69
+ >,
70
+ result: tc.result as any,
71
+ error: typeof tc.error === 'string' ? tc.error : undefined,
72
duration: typeof tc.durationMs === 'number' ? tc.durationMs : 0,
73
}))
74
const toolCalls: NormalizedBlockOutput['toolCalls'] = {
0 commit comments