frdel commited on
Commit
dc4e8f4
·
1 Parent(s): d2dd5ca

input tool terminals

Browse files
README.md CHANGED
@@ -149,13 +149,25 @@ docker run -p 50001:80 frdel/agent-zero-run
149
 
150
  ## 🎯 Changelog
151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  ### v0.8.3.1
153
  [Release video](https://youtu.be/AGNpQ3_GxFQ)
154
 
155
  - **Automatic embedding**
156
 
157
 
158
-
159
  ### v0.8.3
160
  [Release video](https://youtu.be/bPIZo0poalY)
161
 
 
149
 
150
  ## 🎯 Changelog
151
 
152
+ ### v0.8.4.1
153
+ - Various bugfixes related to context management
154
+ - Message formatting improvements
155
+ - Scheduler improvements
156
+ - New model provider
157
+ - Input tool fix
158
+ - Compatibility and stability improvements
159
+
160
+ ### v0.8.4
161
+ [Release video](https://youtu.be/QBh_h_D_E24)
162
+
163
+ - **Remote access (mobile)**
164
+
165
  ### v0.8.3.1
166
  [Release video](https://youtu.be/AGNpQ3_GxFQ)
167
 
168
  - **Automatic embedding**
169
 
170
 
 
171
  ### v0.8.3
172
  [Release video](https://youtu.be/bPIZo0poalY)
173
 
prompts/default/agent.system.tool.input.md CHANGED
@@ -1,5 +1,6 @@
1
  ### input:
2
  use keyboard arg for terminal program input
 
3
  answer dialogues enter passwords etc
4
  not for browser
5
  usage:
@@ -11,6 +12,7 @@ usage:
11
  "tool_name": "input",
12
  "tool_args": {
13
  "keyboard": "Y",
 
14
  }
15
  }
16
  ~~~
 
1
  ### input:
2
  use keyboard arg for terminal program input
3
+ use session arg for terminal session number
4
  answer dialogues enter passwords etc
5
  not for browser
6
  usage:
 
12
  "tool_name": "input",
13
  "tool_args": {
14
  "keyboard": "Y",
15
+ "session": 0
16
  }
17
  }
18
  ~~~
python/tools/input.py CHANGED
@@ -9,9 +9,12 @@ class Input(Tool):
9
  # normalize keyboard input
10
  keyboard = keyboard.rstrip()
11
  keyboard += "\n"
 
 
 
12
 
13
  # forward keyboard input to code execution tool
14
- args = {"runtime": "terminal", "code": keyboard}
15
  cot = CodeExecution(self.agent, "code_execution_tool", "", args, self.message)
16
  cot.log = self.log
17
  return await cot.execute(**args)
 
9
  # normalize keyboard input
10
  keyboard = keyboard.rstrip()
11
  keyboard += "\n"
12
+
13
+ # terminal session number
14
+ session = int(self.args.get("session", 0))
15
 
16
  # forward keyboard input to code execution tool
17
+ args = {"runtime": "terminal", "code": keyboard, "session": session}
18
  cot = CodeExecution(self.agent, "code_execution_tool", "", args, self.message)
19
  cot.log = self.log
20
  return await cot.execute(**args)