From c2f4d57e68c777cbc8dfdc14d00daca17b4530f4 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 22 Nov 2024 00:56:40 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../interview_openhands.toml | 2 +- .../interview_openhands/llm_agent.py | 4 +- .../nodes/frontend/public/index.html | 2 +- .../experimental/nodes/frontend/server.js | 2 +- .../experimental/nodes/frontend/src/App.css | 2 +- .../experimental/nodes/frontend/src/App.tsx | 14 ++-- .../src/components/Browser/Browser.css | 16 ++-- .../src/components/Browser/Browser.tsx | 4 +- .../ChatInterface/ChatInterface.css | 74 +++++++++---------- .../ChatInterface/ChatInterface.tsx | 10 +-- .../src/components/CodeEditor/CodeEditor.css | 7 +- .../src/components/CodeEditor/CodeEditor.tsx | 2 +- .../src/components/CodeEditor/FileSystem.css | 9 +-- .../src/components/CodeEditor/FileSystem.tsx | 16 ++-- .../src/components/Terminal/Terminal.css | 28 +++---- .../src/components/Terminal/Terminal.tsx | 6 +- .../experimental/nodes/frontend/src/logo.svg | 2 +- 17 files changed, 98 insertions(+), 102 deletions(-) diff --git a/examples/experimental/interview_openhands/interview_openhands.toml b/examples/experimental/interview_openhands/interview_openhands.toml index 5138a012..ed1e64fa 100644 --- a/examples/experimental/interview_openhands/interview_openhands.toml +++ b/examples/experimental/interview_openhands/interview_openhands.toml @@ -144,4 +144,4 @@ jsonl_file_path = "logs/interview_openhands.jsonl" "Agent:Runtime" = "agent_action" "Runtime:Agent" = "text" "Scene:Jane" = "text" -"Scene:Jack" = "text" \ No newline at end of file +"Scene:Jack" = "text" diff --git a/examples/experimental/interview_openhands/llm_agent.py b/examples/experimental/interview_openhands/llm_agent.py index c3aaf3d9..eb41c2d6 100644 --- a/examples/experimental/interview_openhands/llm_agent.py +++ b/examples/experimental/interview_openhands/llm_agent.py @@ -311,9 +311,7 @@ async def aact(self, message: AgentAction | Tick | Text) -> AgentAction: "BrowserOutputObservation received.", ) ) - text = text.split("BrowserOutputObservation", 1)[1][ - :100 - ] + text = text.split("BrowserOutputObservation", 1)[1][:100] self.message_history.append((self.name, "observation data", text)) return AgentAction( agent_name=self.name, action_type="none", argument="", path="" diff --git a/examples/experimental/nodes/frontend/public/index.html b/examples/experimental/nodes/frontend/public/index.html index aa069f27..e65acb3d 100644 --- a/examples/experimental/nodes/frontend/public/index.html +++ b/examples/experimental/nodes/frontend/public/index.html @@ -1,4 +1,4 @@ - +
diff --git a/examples/experimental/nodes/frontend/server.js b/examples/experimental/nodes/frontend/server.js index 7905b0cd..93cb7e22 100644 --- a/examples/experimental/nodes/frontend/server.js +++ b/examples/experimental/nodes/frontend/server.js @@ -61,4 +61,4 @@ app.get('/', (req, res) => { // Start the server server.listen(8000, () => { console.log('Server is running on http://localhost:8000'); -}); \ No newline at end of file +}); diff --git a/examples/experimental/nodes/frontend/src/App.css b/examples/experimental/nodes/frontend/src/App.css index a644904e..15393593 100644 --- a/examples/experimental/nodes/frontend/src/App.css +++ b/examples/experimental/nodes/frontend/src/App.css @@ -71,4 +71,4 @@ body { padding: 10px; box-sizing: border-box; resize: none; -} */ \ No newline at end of file +} */ diff --git a/examples/experimental/nodes/frontend/src/App.tsx b/examples/experimental/nodes/frontend/src/App.tsx index cf2260c0..c8feec3a 100644 --- a/examples/experimental/nodes/frontend/src/App.tsx +++ b/examples/experimental/nodes/frontend/src/App.tsx @@ -64,7 +64,7 @@ const App: React.FC = () => { const handleAgentAction = (messageData: any) => { const actionType = messageData.data.action_type; const agentName = messageData.data.agent_name; - + if (actionType === "speak") { const newMessage = { text: `${agentName}: ${messageData.data.argument}`, @@ -108,14 +108,14 @@ const App: React.FC = () => {