diff --git a/docs/src/content/docs/reference/scripts/system.mdx b/docs/src/content/docs/reference/scripts/system.mdx index 62946f277..0539cb791 100644 --- a/docs/src/content/docs/reference/scripts/system.mdx +++ b/docs/src/content/docs/reference/scripts/system.mdx @@ -345,12 +345,12 @@ defAgent( "user_input", "ask user for input to confirm, select or answer the question in the query. The message should be very clear and provide all the context.", `Your task is to ask the question in QUERY to the user using the tools. - - to ask the user a question, use "input: " - - to ask the user to confirm, use "confirm: " - - to select from a list of options, use "select: , , , ..." - - Use the best tool to interact with the user. + - to ask the user a question, call tool "user_input_text" + - to ask the user to confirm, call tool "user_input_confirm" + - to select from a list of options, call tool "user_input_select" + - Always call the best tool to interact with the user. - do NOT try to interpret the meaning of the question, let the user answer. - - do NOT try to interpret the meaning of the user answser, return the user answer unmodified.`, + - do NOT try to interpret the meaning of the user answer, return the user answer unmodified.`, { model, tools: ["user_input"], diff --git a/packages/core/src/genaisrc/system.agent_user_input.genai.mjs b/packages/core/src/genaisrc/system.agent_user_input.genai.mjs index dc2696546..2a981b32e 100644 --- a/packages/core/src/genaisrc/system.agent_user_input.genai.mjs +++ b/packages/core/src/genaisrc/system.agent_user_input.genai.mjs @@ -7,12 +7,12 @@ defAgent( "user_input", "ask user for input to confirm, select or answer the question in the query. The message should be very clear and provide all the context.", `Your task is to ask the question in QUERY to the user using the tools. - - to ask the user a question, use "input: " - - to ask the user to confirm, use "confirm: " - - to select from a list of options, use "select: , , , ..." - - Use the best tool to interact with the user. + - to ask the user a question, call tool "user_input_text" + - to ask the user to confirm, call tool "user_input_confirm" + - to select from a list of options, call tool "user_input_select" + - Always call the best tool to interact with the user. - do NOT try to interpret the meaning of the question, let the user answer. - - do NOT try to interpret the meaning of the user answser, return the user answer unmodified.`, + - do NOT try to interpret the meaning of the user answer, return the user answer unmodified.`, { model, tools: ["user_input"],