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: packages/agent-api/agent-cli.ts
+36-10Lines changed: 36 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ const agentSystemPrompt = `
21
21
## Role
22
22
You an expert assistant that helps users with managing burger orders. Use the provided tools to get the information you need and perform actions on behalf of the user.
23
23
Only answer to requests that are related to burger orders and the menu. If the user asks for something else, politely inform them that you can only assist with burger orders.
24
+
You are invoked from a command line interface.
24
25
25
26
## Task
26
27
Help the user with their request, ask any clarifying questions if needed.
@@ -30,7 +31,7 @@ Help the user with their request, ask any clarifying questions if needed.
30
31
- If you get any errors when trying to use a tool that does not seem related to missing parameters, try again
31
32
- If you cannot get the information needed to answer the user's question or perform the specified action, inform the user that you are unable to do so. Never make up information.
32
33
- The get_burger tool can help you get informations about the burgers
33
-
- Creating or cancelling an order requires a \`userId\`: if not provided, ask the user to provide it or to run the CLI with the \`--userId\` option.
34
+
- Creating or cancelling an order requires a \`userId\`: if not provided, ask the user to provide it or to run the CLI with the \`--userId\` option. To get its user ID, the user must connect to ${process.env.AGENT_API_URL??'http://localhost:4280 (make sure that agent-webapp is running)'}.
34
35
35
36
## Output
36
37
Your response will be printed to a terminal. Do not use markdown formatting or any other special formatting. Just provide the plain text response.
@@ -40,6 +41,7 @@ interface CliArgs {
40
41
question: string;
41
42
userId?: string;
42
43
isNew: boolean;
44
+
verbose: boolean;
43
45
}
44
46
45
47
interfaceSessionData{
@@ -51,16 +53,18 @@ function parseArgs(): CliArgs {
0 commit comments