input tool terminals
frdel committed
May 21, 2025 at 13:56 UTC
6a3320641a34d1f0ea20b81ac22700a606247b5b
3 files changed
+19
-2
README.md
+13
-1
@@ -149,13 +149,25 @@ docker run -p 50001:80 frdel/agent-zero-run
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
158
-
171
### v0.8.3
172
[Release video](https://youtu.be/bPIZo0poalY)
173
prompts/default/agent.system.tool.input.md
+2
@@ -1,5 +1,6 @@
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:
@@ -11,6 +12,7 @@ usage:
12
"tool_name": "input",
13
"tool_args": {
14
"keyboard": "Y",
15
+ "session": 0
16
}
17
}
18
~~~
\ No newline at end of file
python/tools/input.py
+4
-1
@@ -9,9 +9,12 @@ class Input(Tool):
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
14
- args = {"runtime": "terminal", "code": keyboard}
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)