File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
packages/agent-runtime/src/tools/handlers/tool Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ export const printModeSubagentStartSchema = z.object({
6565 displayName : z . string ( ) ,
6666 onlyChild : z . boolean ( ) ,
6767 parentAgentId : z . string ( ) . optional ( ) ,
68+ params : z . record ( z . string ( ) , z . any ( ) ) . optional ( ) ,
69+ prompt : z . string ( ) . optional ( ) ,
6870} )
6971export type PrintModeSubagentStart = z . infer <
7072 typeof printModeSubagentStartSchema
@@ -77,6 +79,8 @@ export const printModeSubagentFinishSchema = z.object({
7779 displayName : z . string ( ) ,
7880 onlyChild : z . boolean ( ) ,
7981 parentAgentId : z . string ( ) . optional ( ) ,
82+ params : z . record ( z . string ( ) , z . any ( ) ) . optional ( ) ,
83+ prompt : z . string ( ) . optional ( ) ,
8084} )
8185export type PrintModeSubagentFinish = z . infer <
8286 typeof printModeSubagentFinishSchema
Original file line number Diff line number Diff line change @@ -327,6 +327,8 @@ export async function executeSubagent(
327327 parentAgentState,
328328 isOnlyChild,
329329 ancestorRunIds,
330+ prompt,
331+ spawnParams,
330332 } = withDefaults
331333
332334 const startEvent = {
@@ -336,6 +338,8 @@ export async function executeSubagent(
336338 displayName : agentTemplate . displayName ,
337339 onlyChild : isOnlyChild ,
338340 parentAgentId : parentAgentState . agentId ,
341+ prompt,
342+ params : spawnParams ,
339343 }
340344 onResponseChunk ( startEvent )
341345
@@ -352,6 +356,8 @@ export async function executeSubagent(
352356 displayName : agentTemplate . displayName ,
353357 onlyChild : isOnlyChild ,
354358 parentAgentId : parentAgentState . agentId ,
359+ prompt,
360+ params : spawnParams ,
355361 } )
356362
357363 if ( result . agentState . runId ) {
You can’t perform that action at this time.
0 commit comments