Skip to content

StreamingMode.SSE in Run Configs along with include_thoughts=True in ThinkingConfig prevents LLMAgent from making any function calls #2931

@kaustav-purkait-unbxd

Description

@kaustav-purkait-unbxd

Describe the bug
StreamingMode.SSE in Run Configs along with include_thoughts=True in ThinkingConfig prevents LLMAgent from making any function calls

To Reproduce
Steps to reproduce the behavior:

Run: Create LLM Agent with
planner=BuiltInPlanner(
thinking_config=genai_types.ThinkingConfig(
include_thoughts=True,
),
),
Execute run.async with run_config=RunConfig(streaming_mode=StreamingMode.SSE, max_llm_calls=200)

Error:
No function tools are called / executed if incude_thoughts = True and streaming_mode=StreamingMode.SSE

If the agent is forced to make a function call by specifying the tool to call, the following error occurs:

Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0xffffb0733a60>
Unclosed connector
connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 0xffffb062fb80>, 63756.808505184)])']
connector: <aiohttp.connector.TCPConnector object at 0xffffb078c8b0>

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Python version(python -V): 3.10.12
  • ADK version(pip show google-adk): 1.12.0

Model Information:
gemini-2.5-pro

Metadata

Metadata

Labels

live[Component] This issue is related to live, voice and video chat

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions