Skip to content

Commit 2ac0d04

Browse files
committed
Fixes
1 parent a1ca0da commit 2ac0d04

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

apps/sim/executor/handlers/mothership/mothership-handler.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ function formatMothershipBlockOutput(
6363
): NormalizedBlockOutput {
6464
const formattedList = (result.toolCalls || []).map((tc: Record<string, unknown>) => ({
6565
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,
66+
arguments: (tc.params && typeof tc.params === 'object' ? tc.params : {}) as Record<
67+
string,
68+
unknown
69+
>,
70+
result: tc.result as any,
71+
error: typeof tc.error === 'string' ? tc.error : undefined,
6972
duration: typeof tc.durationMs === 'number' ? tc.durationMs : 0,
7073
}))
7174
const toolCalls: NormalizedBlockOutput['toolCalls'] = {

0 commit comments

Comments
 (0)