Skip to content
Merged

Dev #61

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.12.3](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.12.2...v1.12.3) (2025-05-12)


### Bug Fixes

* fix toolname parse ([ee872c8](https://github.com/TencentCloudBase/cloudbase-agent-ui/commit/ee872c8b9eb1e01e970e0b13ea2f9ecbad30bcac))

### [1.12.2](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.12.1...v1.12.2) (2025-05-09)


Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ Page({

![](https://qcloudimg.tencent-cloud.cn/raw/b45a95e06ec0df8dab5c9d9ec7707faa.png)

#### 4. agent-ui 组件工具卡片组件中配置自定义组件映射
#### 4. 实现 Agent UI customCard 组件

- 在agent-ui customCard 组件(agent-ui/customCard/index.wxml) 中添加自定义逻辑,可根据不同 tool 类型渲染不同自定义组件

![](https://qcloudimg.tencent-cloud.cn/raw/b4cd35ccaa3e72189934ed59d35f7ae5.png)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,8 @@ Component({
},
transformToolName: function (str) {
if (str) {
const strArr = str.split("/");
if (strArr[1]) {
return strArr[1];
} else if (strArr[0]) {
return strArr[0];
}
const strArr = str.split(/\/+/);
return strArr[strArr.length - 1];
}
return "";
},
Expand Down
8 changes: 2 additions & 6 deletions components/agent-ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,8 @@ Component({
},
transformToolName: function (str) {
if (str) {
const strArr = str.split("/");
if (strArr[1]) {
return strArr[1];
} else if (strArr[0]) {
return strArr[0];
}
const strArr = str.split(/\/+/);
return strArr[strArr.length - 1];
}
return "";
},
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudbase-agent-ui",
"version": "1.12.2",
"version": "1.12.3",
"description": "微信小程序 Agent UI组件",
"main": "index.js",
"directories": {
Expand Down
Loading