|
GPT Computer Assistant是一个基于 GPT-4o 的智能电脑助手,支持 Windows,macOS 和 Linux 平台。它的目标是作为 Windows 平台上 Copilot 的替代品。 GPT Computer Assistant 主要功能目前 GPT Computer Assistant 支持以下功能: GPT Computer Assistant 应用场景做会议记录日程安排辅助阅读编写代码并复制到剪贴板GPT Computer Assistant 快速上手安装 GPT Computer Assistant 前,需要确保本地 Python 的版本高于 3.9。 创建 Agentpip3install'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()
开放 APIGPT 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
|