Skip to content

Commit

Permalink
refactor: update user input tool calls 🛠️
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 5, 2024
1 parent 55813f2 commit 1ae832c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/src/content/docs/reference/scripts/system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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: <question>"
- to ask the user to confirm, use "confirm: <question>"
- to select from a list of options, use "select: <option1>, <option2>, <option3>, ..."
- 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"],
Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/genaisrc/system.agent_user_input.genai.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: <question>"
- to ask the user to confirm, use "confirm: <question>"
- to select from a list of options, use "select: <option1>, <option2>, <option3>, ..."
- 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"],
Expand Down

0 comments on commit 1ae832c

Please sign in to comment.