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: src/app/service/agent/tools/ask_user.ts
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,22 @@ import type { ToolExecutor } from "@App/app/service/agent/tool_registry";
4
4
exportconstASK_USER_DEFINITION: ToolDefinition={
5
5
name: "ask_user",
6
6
description:
7
-
"Ask the user a question and wait for their response. Use this when you need clarification, a decision, or user input before proceeding. The user will see the question in the chat UI and can type a response.",
7
+
"Ask the user a question and wait for their response (text only, no image support). "+
8
+
"Use options for structured choices (single/multi-select). Times out after 5 minutes.",
8
9
parameters: {
9
10
type: "object",
10
11
properties: {
11
12
question: {type: "string",description: "The question to ask the user"},
13
+
options: {
14
+
type: "array",
15
+
items: {type: "string"},
16
+
description:
17
+
"Optional list of choices for the user. If provided, user selects from these instead of free text input.",
0 commit comments