Skip to content

Releases: PengZixuan30/Games_AI

Version0.5.5

Choose a tag to compare

@PengZixuan30 PengZixuan30 released this 08 Jul 11:08

🎉 GamesAI v0.5.5 发布!| Released! | 發布!

🆕 新增功能 | New Features | 新增功能

🤖 AI 自主扩展 — 7 个全新工具

🤖 AI Self-Extension — 7 New Tools

🤖 AI 自主擴充 — 7 個全新工具

AI 现在可以自主扩展自身能力了!只需告诉 AI 你想要什么功能,它就能自己编写代码并应用。新增了以下工具:

  • 技能管理三件套write_skills(创建技能)、modify_skills(修改技能)、delete_skills(删除技能)——AI 可以帮你创建和管理技能指导文件。
  • 自定义工具管理read_custom_tools(读取工具文件)、modify_custom_tools(修改工具文件)——AI 可以帮你编写新的工具函数。
  • 实用工具setting_timer(定时等待)、reload_plugin(热重载插件)——AI 可以在操作完成后自动重载,无需你手动操作。

The AI can now extend its own capabilities! Just tell it what you want, and it will write the code and apply it. New tools include:

  • Skill Management: write_skills, modify_skills, delete_skills — the AI can create and manage skill instruction files for you.
  • Custom Tools Management: read_custom_tools, modify_custom_tools — the AI can write new tool functions for you.
  • Utilities: setting_timer (timed wait), reload_plugin (hot reload) — the AI can reload automatically after making changes.

AI 現在可以自主擴充自身能力了!只需告訴 AI 你想要什麼功能,它就能自己編寫程式碼並套用。新增了以下工具:

  • 技能管理三件組write_skillsmodify_skillsdelete_skills——AI 可以幫你建立和管理技能指導檔案。
  • 自訂工具管理read_custom_toolsmodify_custom_tools——AI 可以幫你編寫新的工具函式。
  • 實用工具setting_timer(定時等待)、reload_plugin(熱重載插件)——AI 可以在操作完成後自動重載。

🔄 热重载 | Hot Reload | 熱重載

重载插件时不再丢失聊天记录!!!gamesai reload 现在执行进程内热重载,保留所有对话历史,同时即时应用配置、技能和自定义工具的更改。

Reloading no longer loses chat history! !!gamesai reload now performs an in-process hot reload, preserving all conversations while instantly applying config, skills, and custom tools changes.

重新載入插件時不再遺失聊天記錄!!!gamesai reload 現在執行行程內熱重載,保留所有對話歷史,同時即時套用設定、技能和自訂工具的變更。


📚 内置技能文件 | Built-in Skill Files | 內建技能檔案

插件现在附带两个内置技能指导文件,AI 会在修改技能或工具前自动阅读,确保操作规范:

  • skills_management.md — 教导 AI 如何正确管理技能文件
  • custom_tools_management.md — 教导 AI 如何正确修改自定义工具

The plugin now ships with two built-in skill files that the AI reads automatically before modifying skills or tools:

  • skills_management.md — teaches the AI how to properly manage skill files
  • custom_tools_management.md — teaches the AI how to properly modify custom tools

插件現在附帶兩個內建技能指導檔案,AI 會在修改技能或工具前自動閱讀:

  • skills_management.md — 教導 AI 如何正確管理技能檔案
  • custom_tools_management.md — 教導 AI 如何正確修改自訂工具

🔧 其他改进 | Other Improvements | 其他改進

  • 修复了某些情况下 AI 对话报错的问题
  • 提升了重载功能的稳定性和响应速度
  • Fixed errors that occurred during AI conversations in certain scenarios
  • Improved reload stability and response speed
  • 修復了某些情況下 AI 對話報錯的問題
  • 提升了重載功能的穩定性和回應速度

完整更新日志见 README

Version 0.5.4

Choose a tag to compare

@PengZixuan30 PengZixuan30 released this 05 Jun 16:23

🐛 Bug Fixes

  • Fixed history trimming causing API errors: After many consecutive conversations with tool calls, the plugin could send malformed messages to the API, resulting in HTTP 400 errors. History is now trimmed safely without breaking message structure.
  • Fixed Pydantic compatibility issue: Resolved a crash that occurred when the history trimming function encountered API response objects.

🐛 问题修复

  • 修复历史裁剪导致 API 报错:连续多次带工具调用的对话后,插件可能向 API 发送格式错误的消息,导致 HTTP 400 错误。现改为安全裁剪,不再破坏消息结构。
  • 修复 Pydantic 兼容性问题:解决了历史裁剪函数遇到 API 响应对象时发生崩溃的问题。

🐛 問題修復

  • 修復歷史裁剪導致 API 報錯:連續多次帶工具呼叫的對話後,插件可能向 API 傳送格式錯誤的訊息,導致 HTTP 400 錯誤。現改為安全裁剪,不再破壞訊息結構。
  • 修復 Pydantic 相容性問題:解決了歷史裁剪函式遇到 API 回應物件時發生崩潰的問題。

Version 0.5.3

Choose a tag to compare

@PengZixuan30 PengZixuan30 released this 24 May 08:28

GamesAI v0.5.3

v0.5.3

  • 修复关键的历史记录损坏 Bug:修复 history.append(response_message) 将整个消息列表错误追加为单个元素,导致第二次对话时 API 返回 HTTP 400 错误(invalid type: map, expected variant identifier)。
  • 按用户追踪工具调用计数:全局 tool_count 替换为 user_tool_counts 字典,每个用户的工具调用次数独立记录,清除历史时自动重置,解决了历史保留上限无限膨胀的问题。
  • 修复 Debug 模式下的 NameErrordebug 笔误修正为 debug_mode

v0.5.2

  • 新增 Skills 技能系统:可在 config/games_ai/skills/ 编写 Markdown 指导文件,注册于 skills.json,AI 通过内置 read_skills 工具读取,实现标准化工作流程引导。
  • 提示词支持外部文件引用(> filename.md)。
  • 改进 Python 3.14 兼容性,修复若干问题。

Version 0.5.2

Choose a tag to compare

@PengZixuan30 PengZixuan30 released this 24 May 03:31

Version 0.5.2

Skills 技能系统

新增 Skills 技能系统,允许你通过编写 Markdown 指导文件来精确控制 AI 的行为。技能注册后会自动注入 AI 的系统提示,AI 在执行相关任务前可通过 read_skills 工具读取对应的指导文件。

  • 新增 config/games_ai/skills/ 文件夹及 skills.json 注册文件
  • 新增内置工具 read_skills — AI 用于读取技能指导文件
  • 技能文件为 Markdown 格式,可自由编写和注册

🔧 修复与改进

  • 修复 Python 3.14 兼容性问题(global 声明与类型注解冲突)
  • 修复语言文件中 skills 翻译键不一致的问题
  • 其他稳定性修复
  • 修复PR #4

Version0.5.1

Choose a tag to compare

@PengZixuan30 PengZixuan30 released this 16 May 14:33

中文:

本次更新了如下内容:

  • 提示词文件化
  • 错误码自动识别
  • 修复了一些问题

English:

This update follow with:

  • File-based prompts
  • Automatic error code identification
  • Fixed some issues

Version0.5.0

Choose a tag to compare

@PengZixuan30 PengZixuan30 released this 10 May 06:56

中文:

本次更新了如下内容:

  • 加入了自定义工具的功能
  • 加入了一些新的工具
  • 修复了一些问题

English:

This update following:

  • Custom tools
  • Some new tools
  • Fixed some issues

Version0.4.2

Choose a tag to compare

@PengZixuan30 PengZixuan30 released this 02 May 14:47

中文:

本次更新了以下内容:

  • 加入了AI自动查询Minecraft Wiki的功能,让信息更具准确性
  • 加入了!!gamesai reload指令,让你在修改配置文件后不再需要通过繁琐的步骤卸载并加载插件
  • 重构了部分代码结构,为以后制作自定义skills做好了基础
  • 修复了一些问题

English:

This update includes the following:

  • Added AI-powered automatic querying of the Minecraft Wiki for more accurate information.
  • Added the !!gamesai reload command, so you no longer need to go through the tedious steps of unloading and reloading the plugin after changing configuration files.
  • Refactored parts of the code structure, laying the foundation for creating custom skills in the future.
  • Fixed some issues.

Version 0.4.1

Choose a tag to compare

@PengZixuan30 PengZixuan30 released this 01 May 12:03

中文:

本次更新添加如下内容:

  • 修复了自动版本更新的问题
  • 重构了工具调用方法,为以后添加自定义skills做了铺垫
  • 加入了 加入/移除 白名单的功能
  • 修复了一些问题

English:

This update includes the following changes:

  • Fixed an issue with automatic version updates
  • Refactored the tool calling method to pave the way for adding custom skills in the future
  • Added the ability to add/remove whitelist entries
  • Fixed various issues

Version0.4.0

Choose a tag to compare

@PengZixuan30 PengZixuan30 released this 26 Apr 05:04

中文:

本次更新了如下内容:

  • 加入了自动检查更新
  • 加入了多模型支持
  • 修复了一些问题

English:

The following content has been updated in this release:

  • Added automatic update checking
  • Added multi-model support
  • Fixed some issues

Version 0.3.2

Choose a tag to compare

@PengZixuan30 PengZixuan30 released this 18 Apr 01:21

中文:
本次更新以下内容:

  • 本次更新对!!data write!!data add指令,分别实现覆写和追加数据
  • 本次更新后不再需要在system_message中添加语言要求(当然,你也可以添加),现在插件会自动获取MCDR语言并设置AI使用此种语言回答
  • 修复了一些问题

English:
This update includes the following changes:

  • The !!data write and !!data add commands now respectively implement overwriting and appending data.
  • After this update, it is no longer necessary to add language requirements in system_message (though you may still do so if you wish). The plugin now automatically detects the MCDR language and instructs the AI to respond in that language.
  • Fixed some issues.