-
Notifications
You must be signed in to change notification settings - Fork 5.8k
/
Copy pathaction-type.tsx
46 lines (32 loc) · 1.02 KB
/
action-type.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
enum ActionType {
// Initializes the agent. Only sent by client.
INIT = "initialize",
// Represents a message from the user or agent.
MESSAGE = "message",
// Reads the contents of a file.
READ = "read",
// Writes the contents to a file.
WRITE = "write",
// Runs a command.
RUN = "run",
// Runs a IPython command.
RUN_IPYTHON = "run_ipython",
// Opens a web page.
BROWSE = "browse",
// Interact with the browser instance.
BROWSE_INTERACTIVE = "browse_interactive",
// Delegate a (sub)task to another agent.
DELEGATE = "delegate",
// Logs a thought.
THINK = "think",
// Calls an MCP tool
MCP_CALL_TOOL = "mcp_call_tool",
// If you're absolutely certain that you've completed your task and have tested your work,
// use the finish action to stop working.
FINISH = "finish",
// Reject a request from user or another agent.
REJECT = "reject",
// Changes the state of the agent, e.g. to paused or running
CHANGE_AGENT_STATE = "change_agent_state",
}
export default ActionType;