Giter Site home page Giter Site logo

tjmicropower / avalonia-assistant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xuzeyu91/avalonia-assistant

1.0 0.0 0.0 62.5 MB

基于.Net8+Avalonia+Semantic Kernel 打造一个桌面端的智能AI助理

License: MIT License

JavaScript 0.08% C 26.60% C# 11.58% CSS 0.24% HTML 0.17% Metal 61.33%

avalonia-assistant's Introduction

Avalonia-Assistant

Avalonia-Assistant 是一个开源的桌面智能助理,旨在提供一个基于 Avalonia UI 框架和 Semantic Kernel 与 OpenAI 或其他llm大模型集成的友好交互体验。通过使用 Avalonia-Assistant,您可以通过文本或语音命令来执行各种桌面操作,从而增强您的工作效率和日常办公体验。

特性

  • 文本和语音命令: 支持通过文本和语音命令与助理互动。
  • 垃圾文件清理: 智能识别并清理系统中的垃圾文件。
  • 文件管理: 方便地打开和管理本地文件。
  • 浏览器支持: 通过语音指令快速打开您的默认网络浏览器。
  • 日历查看: 检查您的日程安排并管理日历。
  • 邮件操作: 发送和管理邮件。
  • RPA: 类RPA操作,使用WebDriver进行网页模拟点击操作等行为
  • 本地模型: 基于LLamaSharp实现本地加载gguf模型进行对话
  • 其他:还有很多,我们只要把SK的Plugin封装,理论上都可以去让AI助理完成。

开始使用

在您的本机上开始使用 Avalonia-Assistant 很简单。您需要遵循以下步骤:

克隆这个仓库:

git clone https://github.com/xuzeyu91/Avalonia-Assistant.git

使用IDE打开,启动。

或者执行命令

dotnet build && dotnet run --project Desktop.Assistant/Desktop.Assistant.csproj

填入你的OpenAI Key

然后开始使用吧!

假如你没有OpenAI,想用国内模型,那么你需要另一个项目

https://github.com/songquanpeng/one-api

示例

ChatGPT模式

你可以直接使用ChatGPT模式与GPT进行会话

AI Agent模式

也可以使用Agent模式让AI来帮助你实现某些动作

界面

例如这个图,通过本地插件就能获取我的电脑相关信息。

 [KernelFunction, Description("查询计算机系统信息")]
 public string QueryComputerSystemInformation()
 {
     StringBuilder info = new StringBuilder(); 
     // 查询计算机系统信息
     ManagementObjectSearcher osSearcher = new ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem");
     foreach (ManagementObject os in osSearcher.Get())
     {
         info.AppendLine("操作系统版本: " + os["Caption"]);
         info.AppendLine("操作系统位数: " + os["OSArchitecture"]);
         info.AppendLine("注册人: " + os["RegisteredUser"]);
         info.AppendLine("安装日期: " + ManagementDateTimeConverter.ToDateTime(os["InstallDate"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
     }
     return info.ToString();
 }
……

搜索本地文件

界面

集成了LLamaSharp可以在

https://hf-mirror.com/

搜索gguf格式模型,项目中也内置了一个1.1B的本地模型,可以直接使用。

我还会继续探索,客户端助手有哪些有趣的场景!

如何贡献

我们欢迎任何形式的贡献,无论是通过提供反馈、报告问题还是通过发送拉取请求来添加新功能或修复错误。如果你想为 Avalonia-Assistant 做出贡献,请遵循以下步骤:

Fork 这个仓库。

创建你的特性分支 (git checkout -b feature/AmazingFeature)。

提交你的更改 (git commit -m 'Add some AmazingFeature')。

推送到分支 (git push origin feature/AmazingFeature)。

打开一个拉取请求。

许可证

该项目使用 MIT LICENSE 下的许可证。请查看 LICENSE.md 文件以了解更多信息。

联系我

如有任何问题或建议,请通过以下方式关注我的公众号,可以发送进群等消息,然后我会拉你进交流群 公众号

avalonia-assistant's People

Contributors

xuzeyu91 avatar rocklau avatar

Stargazers

WangJianBing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.