ai_avg
简介
基于AI的AVG引擎
组件接口
ai_avg.gs
| 函数原型 | 函数作用 |
|---|---|
| void run(object user, string ai_cmd, ...) | 执行AI |
FUserAvg.gs
AI缓存(User对象的组件)
| 函数原型 | 函数作用 |
|---|---|
| void ai_run(string ai_cmd, ...) | 在用户身上执行AI指令 |
FUserCache.gs
用户AI缓存(User对象的组件)
| 函数原型 | 函数作用 |
|---|---|
| void add_ai_msg(string content, string role = "user") | 添加AI消息 |
| void add_ai_msg_arr(mixed msg) | 添加AI消息列表 |
| void clear_ai_msg() | 清除AI消息缓存 |
| array get_ai_msg() | 获取AI消息缓存 |
FUserContentParser.gs
内容解析器
| 函数原型 | 函数作用 |
|---|---|
| string get_src_content() | 获取ai源内容 |
| mixed get_ai_content() | 获取ai内容 |
| int ai_content_parse(string content) | 解析ai内容 |
| void clear_ai_content() | 清理ai内容 |
ContentD.gs
内容处理模块