cbs__PostRequests
Submits a question to a Huawei Cloud CBS Q&A bot and returns the matching knowledge points ranked by score, with optional domain and threshold filters.
Instructions
[CBS] 问答服务的输入为用户提问,输出是与输入最匹配的Top N(默认为top5)个知识点,知识点按得分从高到低排序。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"qabot_id": "<qabot_id>",
"question": "<question>"
},
"name": "cbs__PostRequests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extends | No | 扩展参数项。 | |
| user_id | No | 用户id,在日志中用于标识不通用户,可以为任意String | |
| qabot_id | Yes | qabot编号,UUID格式,如:303a0a00-c88a-43e3-aa2f-d5b8b9832b02。 | |
| question | Yes | 用户输入 | |
| project_id | Yes | 来自公有云的Project ID,用于资源隔离。 | |
| session_id | No | 会话标识符,UUID格式。如:c04e6f7b-61d7-4a2d-a0c8-f9ecd2f62359。 | |
| chat_enable | No | 默认false | |
| operate_type | No | 调用接口时候传入,用以标记的问答的行为,默认为0,最终会展示在问答日志里。 0 用户输入 1 单击热点问题 3 单击推荐问题 4 单击问题提示 | |
| threshold_enable | No | true:启动内部阈值 返回经过阈值处理之后的答案。 |