Skip to content

Agent Zero AI framework

input tool terminals

frdel6a3320641a34
diff --git a/README.md b/README.md
index 5c0e0bc4d..42ae86bef 100644
--- a/README.md
+++ b/README.md
@@ -149,13 +149,25 @@ docker run -p 50001:80 frdel/agent-zero-run
## 🎯 Changelog
+### v0.8.4.1
+- Various bugfixes related to context management
+- Message formatting improvements
+- Scheduler improvements
+- New model provider
+- Input tool fix
+- Compatibility and stability improvements
+
+### v0.8.4
+[Release video](https://youtu.be/QBh_h_D_E24)
+
+- **Remote access (mobile)**
+
### v0.8.3.1
[Release video](https://youtu.be/AGNpQ3_GxFQ)
- **Automatic embedding**
-
### v0.8.3
[Release video](https://youtu.be/bPIZo0poalY)
diff --git a/prompts/default/agent.system.tool.input.md b/prompts/default/agent.system.tool.input.md
index 1758b4d09..5b84d670d 100644
--- a/prompts/default/agent.system.tool.input.md
+++ b/prompts/default/agent.system.tool.input.md
@@ -1,5 +1,6 @@
### input:
use keyboard arg for terminal program input
+use session arg for terminal session number
answer dialogues enter passwords etc
not for browser
usage:
@@ -11,6 +12,7 @@ usage:
"tool_name": "input",
"tool_args": {
"keyboard": "Y",
+ "session": 0
}
}
~~~
\ No newline at end of file
diff --git a/python/tools/input.py b/python/tools/input.py
index d17282ca4..5f04c65ad 100644
--- a/python/tools/input.py
+++ b/python/tools/input.py
@@ -9,9 +9,12 @@ class Input(Tool):
# normalize keyboard input
keyboard = keyboard.rstrip()
keyboard += "\n"
+
+ # terminal session number
+ session = int(self.args.get("session", 0))
# forward keyboard input to code execution tool
- args = {"runtime": "terminal", "code": keyboard}
+ args = {"runtime": "terminal", "code": keyboard, "session": session}
cot = CodeExecution(self.agent, "code_execution_tool", "", args, self.message)
cot.log = self.log
return await cot.execute(**args)