feat(agent): enhance suggested questions API with tag scopes

Update the SuggestedQuestionsRequest to include TagScopes for better filtering of knowledge items based on their parent knowledge bases. Modify related API documentation and frontend interfaces to accommodate the new structure. Ensure backend services handle the new tag scope logic correctly, including tests for the updated functionality.
This commit is contained in:
wizardchen
2026-07-17 10:16:58 +08:00
committed by lyingbug
parent c21c34b3c0
commit eedd7d4641
34 changed files with 1041 additions and 338 deletions
+6
View File
@@ -647,6 +647,12 @@ const docTemplate = `{
"name": "knowledge_ids",
"in": "query"
},
{
"type": "string",
"description": "带知识库归属的标签范围(JSON)",
"name": "tag_scopes",
"in": "query"
},
{
"type": "integer",
"description": "返回数量上限(默认6)",
+7 -1
View File
@@ -640,6 +640,12 @@
"name": "knowledge_ids",
"in": "query"
},
{
"type": "string",
"description": "带知识库归属的标签范围(JSON)",
"name": "tag_scopes",
"in": "query"
},
{
"type": "integer",
"description": "返回数量上限(默认6)",
@@ -21784,4 +21790,4 @@
"in": "header"
}
}
}
}
+4
View File
@@ -5943,6 +5943,10 @@ paths:
in: query
name: knowledge_ids
type: string
- description: 带知识库归属的标签范围(JSON)
in: query
name: tag_scopes
type: string
- description: 返回数量上限(默认6)
in: query
name: limit