diff --git a/.ai-assistents/.gitignore b/.ai-assistents/.gitignore new file mode 100644 index 0000000..ab347a7 --- /dev/null +++ b/.ai-assistents/.gitignore @@ -0,0 +1,3 @@ +preferences.yml +README_*.md +cache/ \ No newline at end of file diff --git a/.ai-assistents/README.md b/.ai-assistents/README.md new file mode 100644 index 0000000..4434783 --- /dev/null +++ b/.ai-assistents/README.md @@ -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_.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. +> 封装交互调用所用的信息。 \ No newline at end of file diff --git a/.ai-assistents/TODO.md b/.ai-assistents/TODO.md new file mode 100644 index 0000000..c4b25f9 --- /dev/null +++ b/.ai-assistents/TODO.md @@ -0,0 +1,5 @@ +# To-dos + +Empty at present. Should it be generated now? + +Translations follow "Description" section in [README](README.md). \ No newline at end of file diff --git a/.ai-assistents/preferences.default.yml b/.ai-assistents/preferences.default.yml new file mode 100644 index 0000000..0358c13 --- /dev/null +++ b/.ai-assistents/preferences.default.yml @@ -0,0 +1 @@ +lang: en \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0b188bc..e7b7301 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,13 @@ target/ # 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 # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +.idea/ + + +# Added by cargo + +/target + +# Other + +Cargo.lock \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..a89d45b --- /dev/null +++ b/Cargo.toml @@ -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" diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}