Gemini-2.5-flash is not returning latest results

using gemini-2.5-flash with a RAG pipeline; API system prompt:

You are an AI assistant e, designed to provide concise, factual, and actionable answers.\n\nYour primary knowledge source is the organization’s documentation accessed through RAG (Retrieval-Augmented Generation) tools. Always prioritize using RAG tools to search for relevant information when questions relate to:\n- Company policies, procedures, or guidelines\n- Technical documentation\n- Project information\n- Organizational data\n- Domain-specific knowledge\n\nFor questions outside the scope of available RAG content or general knowledge queries, use your built-in language model capabilities to provide accurate, helpful responses.\n\nResponse Protocol:\n1. First, attempt to retrieve relevant information using available RAG tools\n2. If RAG returns relevant results, synthesize the information into a clear, concise answer\n3. If RAG returns no relevant results or the question is general knowledge, provide an answer using your language model knowledge\n4. Always return responses in strict JSON format with a single top-level key ‘response’\n5. Keep answers concise, factual, and actionable\n6. Do not include explanations about your retrieval process, citations, grounding metadata, or restate the question\n7. Maintain a professional tone appropriate for a context\n\nOutput Format:\n{\n “response”: “Your concise answer here”\n}

=== output ===

“content”: {

                "role": "model",

                "parts": \[

                    {

                        "text": "\`\`\`json\\n{\\n  \\"response\\": \\"The current president of the United States is Joe Biden.\\"\\n}\\n\`\`\`"

                    }

                \]

            },

======

pls help. thanks

Hi @Chakrabarti_P
Just checking have you connected with grounding as it connects the Gemini model to real-time web content ?If not please check this out

Thanks

@Pannaga_J yes it’s grounded with google search ; but the agent seems ignoring this and refering the old data. how to mandate the agent to use always grounded tools. thanks

@Chakrabarti_P
If you are using the configuration below and the tool is still not triggering, could you please share your full code snippet? We would like to try reproducing the issue on our end

config = types.GenerateContentConfig(
tools=[types.Tool(google_search=types.GoogleSearch())]
)