GPT Computer Assistant是一个基于 GPT-4o 的智能电脑助手,支持 Windows,macOS 和 Linux 平台。它的目标是作为 Windows 平台上 Copilot 的替代品。
目前 GPT Computer Assistant 支持以下功能:
安装 GPT Computer Assistant 前,需要确保本地 Python 的版本高于 3.9。
pip3install'gpt-computer-assistant[base]'
pip3install'gpt-computer-assistant[agentic]'
fromgpt_computer_assistantimportAgent,start
manager=Agent(
role='
rojectManager',
goal='understandsprojectneedsandassistcoder',
backstory="""You'reamanageratalargecompany.""",
)
coder=Agent(
role='SeniorPythonCoder',
goal='writingpythonscriptsandcopyingtoclipboard',
backstory="""You'reapythondeveloperatalargecompany.""",
)
start()
fromgpt_computer_assistantimportTool,start
@Tool
defsum_tool(first_number:int,second_number:int)->str:
"""Usefulforwhenyouneedtosumtwonumberstogether."""
returnfirst_number+second_number
start()
GPT Computer Assistant 支持 API 的形式运行,以满足远程操作的场景。
pip3install'gpt-computer-assistant[base]'
pip3install'gpt-computer-assistant[api]'
computerassistant--api
fromgpt_computer_assistant.remoteimportremote
output=remote.input("Hi,howareyoutoday?",screen=False,talk=False)
print(output)
remote.just_screenshot()
remote.talk("TTStest")
#OtherFunctionalities
remote.reset_memory()
remote.profile("default")
remote.enable_predefined_agents()
remote.disable_predefined_agents()
remote.enable_online_tools()
remote.disable_online_tools()
https://github.com/onuratakan/gpt-computer-assistant
| 欢迎光临 链载Ai (https://www.lianzai.com/) | Powered by Discuz! X3.5 |