Skip to content

Commit c5ae71f

Browse files
committed
fix: include_thought set to false in case of missing run_config
1 parent 4ac8c12 commit c5ae71f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/google/adk/flows/llm_flows/contents.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ async def run_async(
6767
# Preserve all contents that were added by instruction processor
6868
# (since llm_request.contents will be completely reassigned below)
6969
instruction_related_contents = llm_request.contents
70+
run_config = invocation_context.run_config
7071
include_thoughts_from_other_agents = (
71-
invocation_context.run_config.include_thoughts_from_other_agents
72+
run_config.include_thoughts_from_other_agents
73+
if run_config is not None
74+
else False
7275
)
7376

7477
if agent.include_contents == 'default':

0 commit comments

Comments
 (0)