adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Error in MCP Tool Calling when using : gemini-2.5-flash-preview-04-17

Open Apollovishwas opened this issue 1 year ago • 1 comments

About Bug When Trying to use this model with MCP Tools, caught this error :


[parameters: [{'id': 'WiEnNVBx', 'content': {'parts': [{'thought': True, 'thought_signature': b'\x01T\xa8\\\xee<N\x83\xc1#\x04+\x8ax\x94\x07\x8dHOj\x87\xe6M\xe3\xcd ... (648 characters truncated) ... etadata': None, 'error_code': None, 'branch': None, 'partial': None, 'error_message': None, 'long_running_tool_ids_json': None, 'turn_complete': None}]]

Basically, ThoughtSignature from this model is in bytes and When Trying to sync up with the Database Session manager, Since it's in 'Bytes', You can't store these and you will get an error.

To Reproduce Following Things were used:

Python Version : 3.13-Slim ADK Version : 1.1.1 Model Used : gemini-2.5-flash-preview-04-17

Expected behavior Apparently, they did an update for the model last night : https://github.com/n8n-io/n8n/issues/15950

I'm guessing, This has to do something with this error. It was working fine until last night.

Screenshots

Desktop (please complete the following information):

  • OS: Cloud Run - GCP
  • Python version(python -V): 3.13
  • ADK version(pip show google-adk): 1.1.1

Apollovishwas avatar Jun 03 '25 09:06 Apollovishwas

Thanks for reporting the issue. However I don't quite understand why you provide a link to n8n. what's the relationship ?

sorry, ADK is not bundled with models. If it works for one model version but the other. that's some regression with model instead of ADK.

Also please provide detailed information including:

  1. what's your agent codes
  2. reproduction steps
  3. full server log showing the error.

feel free to reopen once you have the details.

seanzhou1023 avatar Jun 17 '25 22:06 seanzhou1023