Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

commit

Vasek Mlejnskya07b36867bcc
diff --git a/api-service/codegen/agent/base.py b/api-service/codegen/agent/base.py
index 20b5d4a0f..42d5fafbf 100644
--- a/api-service/codegen/agent/base.py
+++ b/api-service/codegen/agent/base.py
@@ -181,6 +181,7 @@ class CodegenAgent(ChatAgent):
# Sometimes the agent just completely messed up the output format.
# We want to remind it that the last answer was wrong and it should
# follow the format.
+ # TODO: This doesn't work
return (
MALFORMED_ANSWER,
f"Wrong format! Follow the format! Reminder to ALWAYS use the exact the action `Final Answer` when you know the final answer. I just tried to parse your last reponse with `xml.etree.ElementTree.fromstring()` and received this error:\n{e}Reminder, that you should follow the format I told you!",
diff --git a/api-service/codegen/tools/human/tools.py b/api-service/codegen/tools/human/tools.py
index 27067dd45..246563252 100644
--- a/api-service/codegen/tools/human/tools.py
+++ b/api-service/codegen/tools/human/tools.py
@@ -15,10 +15,10 @@ def create_human_tools(
@async_tool("AskHuman")
async def ask_human(question: str) -> str:
- """You can ask a human for guidance when you think you got stuck or you are not sure what to do next. The input should be a question for the human. Example usage:
+ """You can ask a human for guidance when you think you got stuck or you are not sure what to do next. The input should be a question. Example usage:
```
<action tool="AskHuman">
- I'm not sure what to do, can you specify what should the request handle?
+ I'm not sure what to do, can you specify what should to do next?
</action>
```"""
print("Asking about")
diff --git a/components/Editor/RightSidebar/Logs/LogStream.tsx b/components/Editor/RightSidebar/Logs/LogStream.tsx
index 7f132ad4a..171d6afb7 100644
--- a/components/Editor/RightSidebar/Logs/LogStream.tsx
+++ b/components/Editor/RightSidebar/Logs/LogStream.tsx
@@ -15,17 +15,6 @@ export interface Props {
function LogStream({ logs, rawLogs, onAnswer }: Props) {
const ref = useRef<HTMLDivElement>(null)
- // logs = [
- // {
- // id: 'id',
- // type: LogType.Tool,
- // created_at: new Date(),
- // tool_name: ToolName.AskHuman,
- // tool_input: 'What should I do?',
- // tool_output: '',
- // }
- // ]
-
useEffect(function scrollLogs() {
if (!ref.current) return
ref.current.scrollIntoView({ behavior: 'smooth' })