Skip to content

Commit 98b3e06

Browse files
committed
fix for spawnable agent: default input params to empty object
1 parent 41c071a commit 98b3e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/tools/handlers/tool/spawn-agent-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export function validateAgentInput(
209209

210210
// Validate params if schema exists
211211
if (inputSchema.params) {
212-
const result = inputSchema.params.safeParse(params)
212+
const result = inputSchema.params.safeParse(params ?? {})
213213
if (!result.success) {
214214
throw new Error(
215215
`Invalid params for agent ${agentType}: ${JSON.stringify(result.error.issues, null, 2)}`,

0 commit comments

Comments
 (0)