Finish Reason: STOP

I am constantly getting this:
Agent result: {
messages: [
HumanMessage {
“id”: “85c9e2ee-8c1f-463e-8337-7d55c1e8ba24”,
“content”: “show me my tweets”,
“additional_kwargs”: {},
“response_metadata”: {}
},
AIMessage {
“id”: “4d21ae58-cb51-4cae-81be-8a115b2797d1”,
“content”: ,
“name”: “model”,
“additional_kwargs”: {
“finishReason”: “STOP”,
“index”: 0
},
“response_metadata”: {
“tokenUsage”: {
“promptTokens”: 686,
“completionTokens”: 0,
“totalTokens”: 686
},
“finishReason”: “STOP”,
“index”: 0
},
“tool_calls”: ,
“invalid_tool_calls”: ,
“usage_metadata”: {
“input_tokens”: 686,
“output_tokens”: 0,
“total_tokens”: 686
}
}
]
}

I am constantly getting this for gemini 2.5 flash ?can anyone help

Hi @Shivam_Kumar5, welcome to the community!

Apologies for the delayed response.

To help us debug this, could you please share the snippet of code where you are defining and calling the tools.

I believe you are using Langchain; please check the logs if it’s getting ‘STOP‘ for safety.

Also, check if the tools are bound to the model, and you can also implement a retry logic for the same if the errors are intermittent.

Thank you!