mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-07 19:38:19 +02:00
Fix search tool
This commit is contained in:
parent
43557f738b
commit
062dc98719
@ -120,7 +120,9 @@ class SearchTool(Tool):
|
||||
def build_tool_message_content(
|
||||
self, *args: ToolResponse
|
||||
) -> str | list[str | dict[str, Any]]:
|
||||
final_context_docs_response = args[2]
|
||||
final_context_docs_response = next(
|
||||
response for response in args if response.id == FINAL_CONTEXT_DOCUMENTS
|
||||
)
|
||||
final_context_docs = cast(list[LlmDoc], final_context_docs_response.response)
|
||||
|
||||
return json.dumps(
|
||||
|
Loading…
x
Reference in New Issue
Block a user