Skip to content
Merged
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
2 changes: 1 addition & 1 deletion app/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async function submit(formData?: FormData, skip?: boolean) {
// If not using a tool, this model generates the answer
while (
useSpecificAPI
? toolOutputs.length === 0 && answer.length === 0
? answer.length === 0
: answer.length === 0 && !errorOccurred
Comment thread
ngoiyaeric marked this conversation as resolved.
) {
// Search the web and generate the answer
Expand Down
1 change: 1 addition & 0 deletions lib/agents/researcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Tool Usage Guide:
- "What are some parks in San Francisco?"
When you use 'geospatialQueryTool', you don't need to describe how the map will change; simply provide your textual answer based on the query, and trust the map will update appropriately.

When tools are not needed, provide direct, helpful answers based on your knowledge.
Always aim to directly address the user's question. If using information from a tool (like web search), cite the source URL.
Match the language of your response to the user's language.`;

Expand Down