Add api for list agents and agent seesions (#3835)

### What problem does this PR solve?

Add api for list agents and agent seesions

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn>
This commit is contained in:
liuhua
2024-12-03 19:03:16 +08:00
committed by GitHub
parent 821fdf02b4
commit 87455d79e4
6 changed files with 141 additions and 8 deletions

View File

@ -104,9 +104,12 @@ def create(tenant_id):
"parameters": [
{"key": "knowledge", "optional": False}
],
"empty_response": "Sorry! No relevant content was found in the knowledge base!"
"empty_response": "Sorry! No relevant content was found in the knowledge base!",
"quote":True,
"tts":False,
"refine_multiturn":True
}
key_list_2 = ["system", "prologue", "parameters", "empty_response"]
key_list_2 = ["system", "prologue", "parameters", "empty_response","quote","tts","refine_multiturn"]
if "prompt_config" not in req:
req['prompt_config'] = {}
for key in key_list_2: