cbs__ExecuteSession
Sends a user question to a Huawei Cloud CBS Q&A bot within an existing session and returns the bot's answer for interactive question-answering workflows.
Instructions
[CBS] 问答会话API由开启会话、处理会话、关闭会话三个接口组成。用户可通过调用该接口与机器人进行会话。该接口即将下线,请优先使用问答机器人API接口进行调用。
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>",
"session_id": "<session_id>"
},
"name": "cbs__ExecuteSession"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extends | No | 扩展参数。 | |
| user_id | No | 用户id,在日志中用于标识不通用户,可以为任意String。 | |
| qabot_id | Yes | 机器人标识符。 | |
| question | Yes | 用户输入。 | |
| project_id | Yes | 来自公有云的Project ID,用于资源隔离。获取方式请参见获取项目编码。 | |
| session_id | Yes | 会话标识符。 | |
| chat_enable | No | 默认true |