Add tavily as web searh tool. (#5349)

### What problem does this PR solve?

#5198

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Kevin Hu
2025-02-26 10:21:04 +08:00
committed by GitHub
parent e5e9ca0015
commit 53b9e7b52f
6 changed files with 3248 additions and 3080 deletions

View File

@ -64,6 +64,7 @@ def structure_answer(conv, ans, message_id, session_id):
"dataset_id": get_value(chunk, "kb_id", "dataset_id"),
"image_id": get_value(chunk, "image_id", "img_id"),
"positions": get_value(chunk, "positions", "position_int"),
"url": chunk.get("url")
} for chunk in reference.get("chunks", [])]
reference["chunks"] = chunk_list