feat: init program and ai workflow

This commit is contained in:
2026-02-26 21:57:47 +08:00
parent ba44978c16
commit ce1f2ff64c
7 changed files with 61 additions and 1 deletions

3
.ai-assistents/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
preferences.yml
README_*.md
cache/

31
.ai-assistents/README.md Normal file
View File

@@ -0,0 +1,31 @@
> If you are an AI assistant, please read this file first.
>
> 如果你是一个AI助手请先阅读此文件。
# Description 说明
The contents here will be mainly written in English, if needed, PRs that adding Chinese(prefer Simplified, only keeps one style) are welcomed, but not in this "Description" section.
Read and write information you want to remember in the `cache` folder. You (if acting as an AI assistant) can name the file with your name, e.g., `DeepSeek` or `ChatGPT`, etc. You can also create subfolders to organize your information.
Unless necessary, don't modify this file because it is tracked by git; otherwise, PRs modifying this file will be rejected.
> See [preferences.yml](preferences.yml) for user-defined preferences. If it doesn't exist, you can create one from [preferences.default.yml](preferences.default.yml). When creating a new `preferences.yml`, if the user is speaking Chinese, set the `lang` option to `zh_cn` or `zh_tw`. If the user speaks other languages, you should speak the same language, but do not use it to edit this file. Creating a `README_<lang>.md` file is fine.
>
> If you like, add translations for the contents here.
## Important Notes 重要的注意事项
Other files you should read and in git system also:
- [TODO](TODO.md)
## Upstream APIs/SDKs 上游API/SDK
> Only APIs/SDKs worth remembering are listed here.
- [mcp-sdk-rs](https://github.com/jgmartin/mcp-sdk-rs) - Manage and provide MCP tools.
> 管理和提供MCP工具。
- [rig](https://github.com/0xPlaygrounds/rig) - Encapsulate informations of interface calls.
> 封装交互调用所用的信息。

5
.ai-assistents/TODO.md Normal file
View File

@@ -0,0 +1,5 @@
# To-dos
Empty at present. Should it be generated now?
Translations follow "Description" section in [README](README.md).

View File

@@ -0,0 +1 @@
lang: en

11
.gitignore vendored
View File

@@ -15,4 +15,13 @@ target/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear # and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ .idea/
# Added by cargo
/target
# Other
Cargo.lock

8
Cargo.toml Normal file
View File

@@ -0,0 +1,8 @@
[package]
name = "llm-chat-core"
version = "0.0.1"
edition = "2024"
[dependencies]
mcp-sdk-rs = "0.3.4"
rig-core = "0.31.0"

3
src/main.rs Normal file
View File

@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}