rootflo / rootflo/wavefront

[BUG] Gemini agents are looping multiple times, even after getting tool response

Open
#172 2 comments 0 reactions 1 assignee View on GitHub

@vizsatiz is already working on this.

Since Nov 26, 2025.

bug
Dominant language
Python
Stars
200
Forks
30
Avg merge
1d 11h
Merged PRs (30d)
35

Description

Describe the bug
A clear and concise description of what the bug is with stack trace

2025-11-26 18:12:37.910 IST
"reply_message": "Razorpay provides a payment solution in India that allows businesses to manage both online and in-store payments. Its Point-of-Sale (POS) system enables the acceptance of offline payments via UPI, credit, and debit cards at various touchpoints, including retail counters, doorstep deliveries, and self-serve kiosks."
2025-11-26 18:12:37.910 IST
}
2025-11-26 18:12:37.910 IST

2025-11-26 18:12:37.915 IST
2025-11-26 12:42:37 | INFO | google_genai.models | be-xM9keoNJ | models.py:5012 | AFC is enabled with max remote calls: 10.
2025-11-26 18:12:39.763 IST
2025-11-26 12:42:39 | INFO | httpx | be-xM9keoNJ | _client.py:1025 | HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
2025-11-26 18:12:39.767 IST
2025-11-26 12:42:39 | WARNING | google_genai.types | be-xM9keoNJ | types.py:6029 | Warning: there are non-text parts in the response: ['function_call', 'thought_signature'], returning concatenated text result from text parts. Check the full candidates.content.parts accessor to get the full model response.
2025-11-26 18:12:39.767 IST
2025-11-26 12:42:39 | INFO | flo_ai | partial_tool.py:52 | Executing partial tool querying_knowlegebase with merged params: {'kb_id': 'ee3b887d-3f6e-48d4-9752-ef1bc0ee5827', 'inference_id': '55cbe356-6142-4c9f-95d8-b924e7a35ee9', 'question': 'what is razorpay'}
2025-11-26 18:12:41.637 IST
2025-11-26 12:42:41 | INFO | google_genai.models | be-xM9keoNJ | models.py:5012 | AFC is enabled with max remote calls: 10.
2025-11-26 18:12:50.858 IST
2025-11-26 12:42:50 | INFO | httpx | be-xM9keoNJ | _client.py:1025 | HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent "HTTP/1.1 200 OK"
2025-11-26 18:12:50.861 IST
2025-11-26 12:42:50 | INFO | flo_ai | partial_tool.py:56 | Partial tool querying_knowlegebase returned: ```json
2025-11-26 18:12:50.861 IST
{
2025-11-26 18:12:50.861 IST
"reply_message": "Based on the documents, Razorpay POS is a point-of-sale payment solution available in India that allows businesses to accept offline payments using UPI, credit, or debit cards. It can be used for in-person purchases, customer doorstep deliveries, unattended kiosks, and vending machines."
2025-11-26 18:12:50.861 IST
}
2025-11-26 18:12:50.861 IST

2025-11-26 18:12:50.865 IST
2025-11-26 12:42:50 | INFO | google_genai.models | be-xM9keoNJ | models.py:5012 | AFC is enabled with max remote calls: 10.
2025-11-26 18:12:53.111 IST
2025-11-26 12:42:53 | INFO | httpx | be-xM9keoNJ | _client.py:1025 | HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
2025-11-26 18:12:53.113 IST
2025-11-26 12:42:53 | INFO | staging-floware | be-xM9keoNJ | agent_inference_service.py:151 | Successfully completed inference for agent test-translator in 70.67 seconds
2025-11-26 18:12:53.114 IST
2025-11-26 12:42:53 | INFO | staging-floware | be-xM9keoNJ | agent_controller.py:214 | Successfully completed v2 inference for agent_id: ad0bc608-fe1f-4193-b957-19fb52cb1c4b

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.