Skip to content

Commit

Permalink
remove psutil dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoKorinth committed May 16, 2024
1 parent c54f208 commit bbb8888
Show file tree
Hide file tree
Showing 42 changed files with 4 additions and 24,849 deletions.
1 change: 0 additions & 1 deletion skills/control_windows/default_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ module: skills.control_windows.main
description: Control Windows.
prompt: |
You can also control Windows Functions, like opening and closing applications.
You can also get system information like CPU usage, memory usage, disk information or network status.
9 changes: 2 additions & 7 deletions skills/control_windows/main.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import os
from pathlib import Path
import psutil
import pygetwindow as gw
from api.interface import (
SettingsConfig,
SkillConfig,
WingmanConfig,
WingmanInitializationError,
)
from api.enums import LogSource, LogType
from api.enums import LogType
from skills.skill_base import Skill


Expand Down Expand Up @@ -87,7 +86,7 @@ def get_tools(self) -> list[tuple[str, dict]]:
"type": "function",
"function": {
"name": "control_windows_functions",
"description": "Control Windows Functions, like opening and closing applications. Or getting information about your system, like CPU, memory, disks, network.",
"description": "Control Windows Functions, like opening and closing applications.",
"parameters": {
"type": "object",
"properties": {
Expand All @@ -97,7 +96,6 @@ def get_tools(self) -> list[tuple[str, dict]]:
"enum": [
"open",
"close",
"get_cpu_info",
"minimize",
"maximize",
"restore",
Expand Down Expand Up @@ -143,9 +141,6 @@ async def execute_tool(
if app_closed:
function_response = "Application closed."

elif parameters["command"] == "get_cpu_info":
function_response = psutil.cpu_percent(interval=1)

else:
command = parameters["command"]
app_minimize = self.execute_ui_command(parameter, command)
Expand Down
1 change: 0 additions & 1 deletion skills/control_windows/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
psutil==5.9.8
pygetwindow==0.0.9
1 change: 0 additions & 1 deletion templates/skills/control_windows/default_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ module: skills.control_windows.main
description: Control Windows.
prompt: |
You can also control Windows Functions, like opening and closing applications.
You can also get system information like CPU usage, memory usage, disk information or network status.

This file was deleted.

This file was deleted.

Loading

0 comments on commit bbb8888

Please sign in to comment.