Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions backend/src/agent/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def web_research(state: WebSearchState, config: RunnableConfig) -> OverallState:
)

# Uses the google genai client as the langchain client doesn't return grounding metadata
print("---PROMPT---")
print(formatted_prompt)
response = genai_client.models.generate_content(
model=configurable.query_generator_model,
contents=formatted_prompt,
Expand All @@ -120,6 +122,8 @@ def web_research(state: WebSearchState, config: RunnableConfig) -> OverallState:
"temperature": 0,
},
)
print("---RESPONSE---")
print(response)
# resolve the urls to short urls for saving tokens and time
resolved_urls = resolve_urls(
response.candidates[0].grounding_metadata.grounding_chunks, state["id"]
Expand Down
Loading