Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Nov 22, 2024
1 parent c113227 commit c2f4d57
Show file tree
Hide file tree
Showing 17 changed files with 98 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ jsonl_file_path = "logs/interview_openhands.jsonl"
"Agent:Runtime" = "agent_action"
"Runtime:Agent" = "text"
"Scene:Jane" = "text"
"Scene:Jack" = "text"
"Scene:Jack" = "text"
4 changes: 1 addition & 3 deletions examples/experimental/interview_openhands/llm_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down
2 changes: 1 addition & 1 deletion examples/experimental/nodes/frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion examples/experimental/nodes/frontend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ app.get('/', (req, res) => {
// Start the server
server.listen(8000, () => {
console.log('Server is running on http://localhost:8000');
});
});
2 changes: 1 addition & 1 deletion examples/experimental/nodes/frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ body {
padding: 10px;
box-sizing: border-box;
resize: none;
} */
} */
14 changes: 7 additions & 7 deletions examples/experimental/nodes/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down Expand Up @@ -108,14 +108,14 @@ const App: React.FC = () => {
</div>
<div id="code-interface">
<div className="tabs">
<button
onClick={() => setActiveTab('editor')}
<button
onClick={() => setActiveTab('editor')}
className={activeTab === 'editor' ? 'active' : ''}
>
Code Editor
</button>
<button
onClick={() => setActiveTab('browser')}
<button
onClick={() => setActiveTab('browser')}
className={activeTab === 'browser' ? 'active' : ''}
>
Browser
Expand All @@ -125,7 +125,7 @@ const App: React.FC = () => {
<div id="code-editor">
<CodeEditor
code={files[currentFile]}
onChange={(newCode) =>
onChange={(newCode) =>
setFiles(prevFiles => ({ ...prevFiles, [currentFile]: newCode }))
}
filename={currentFile}
Expand All @@ -144,4 +144,4 @@ const App: React.FC = () => {
);
};

export default App;
export default App;
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
display: flex;
flex-direction: column;
}

.browser-toolbar {
display: flex;
align-items: center;
padding: 8px;
background-color: #252526;
border-bottom: 1px solid #333;
}

.browser-toolbar input {
flex: 1;
background-color: #3c3c3c;
Expand All @@ -24,12 +24,12 @@
margin-right: 8px;
font-size: 13px;
}

.browser-toolbar input:focus {
outline: none;
border-color: #007acc;
}

.browser-toolbar button {
background-color: #007acc;
color: white;
Expand All @@ -39,18 +39,18 @@
cursor: pointer;
font-size: 13px;
}

.browser-toolbar button:hover {
background-color: #0066aa;
}

.browser-content {
flex: 1;
background-color: #ffffff;
}

.browser-content iframe {
width: 100%;
height: 100%;
border: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface BrowserProps {

export const Browser: React.FC<BrowserProps> = ({ url }) => {
const [currentUrl, setCurrentUrl] = useState(url);

return (
<div className="browser-container">
<div className="browser-toolbar">
Expand All @@ -24,4 +24,4 @@ export const Browser: React.FC<BrowserProps> = ({ url }) => {
</div>
</div>
);
};
};
Loading

0 comments on commit c2f4d57

Please sign in to comment.