mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-01 00:18:18 +02:00
functional search and chat once again!
This commit is contained in:
parent
1285b2f4d4
commit
875fb05dca
@ -338,6 +338,7 @@ class Answer:
|
||||
self._update_prompt_builder_for_search_tool(prompt_builder, [])
|
||||
|
||||
elif tool.name == ImageGenerationTool._NAME:
|
||||
print("\n----\nUpdating image prompt user message\n----\n")
|
||||
img_urls = [
|
||||
img_generation_result["url"]
|
||||
for img_generation_result in tool_runner.tool_final_result().tool_result
|
||||
@ -348,6 +349,8 @@ class Answer:
|
||||
)
|
||||
)
|
||||
|
||||
print("now stremign wie fianl results")
|
||||
|
||||
yield tool_runner.tool_final_result()
|
||||
|
||||
# Update message history with tool call and response
|
||||
@ -386,6 +389,8 @@ class Answer:
|
||||
)
|
||||
)
|
||||
|
||||
print("\n----\nBuilding final prompt with Tool call summary\n----\n")
|
||||
|
||||
# Generate response based on updated message history
|
||||
prompt = prompt_builder.build(tool_call_summary=tool_call_summary)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user