You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/src/tools/params/tool/set-output.ts
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,17 @@ import type { $ToolParams } from '../../constants'
7
7
consttoolName='set_output'
8
8
constendsAgentStep=false
9
9
constinputSchema=z
10
-
.looseObject({})
10
+
.looseObject({
11
+
data: z.record(z.string(),z.any()).optional(),
12
+
})
11
13
.describe(
12
14
'JSON object to set as the agent output. This completely replaces any previous output. If the agent was spawned, this value will be passed back to its parent. If the agent has an outputSchema defined, the output will be validated against it.',
13
15
)
14
16
constdescription=`
15
17
Subagents must use this tool as it is the only way to report any findings. Nothing else you write will be visible to the user/parent agent.
16
18
19
+
Note that the output schema is provided dynamically in a user prompt further down in the conversation. Be sure to follow what the latest output schema is when using this tool.
20
+
17
21
Please set the output with all the information and analysis you want to pass on. If you just want to send a simple message, use an object with the key "message" and value of the message you want to send.
0 commit comments