File size: 1,256 Bytes
5f40163 | 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 47 48 49 50 51 52 53 | enum ActionType {
// Initializes the agent. Only sent by client.
INIT = "initialize",
// Represents a message from the user or agent.
MESSAGE = "message",
// Represents a system message for an agent, including the system prompt and available tools.
SYSTEM = "system",
// 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",
// 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",
// Interact with the MCP server.
MCP = "call_tool_mcp",
// Views or updates the task list for task management.
TASK_TRACKING = "task_tracking",
}
export default ActionType;
|