-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
agentsIssues related to single agentsIssues related to single agentsbugSomething isn't workingSomething isn't workingpython
Description
Description
Function invocation conversation-id propagation crashes when chat_options in kwargs is a dict.
_update_conversation_id does:
kwargs["chat_options"].conversation_id = conversation_idwhich assumes an object with attribute access. If a dict is provided, this raises AttributeError.
Code Sample
from agent_framework._tools import _update_conversation_id
kwargs = {"chat_options": {}}
_update_conversation_id(kwargs, "conv_1", {})
# Actual: AttributeError: 'dict' object has no attribute 'conversation_id'
# Expected: kwargs['chat_options']['conversation_id'] updated or graceful handlingA full invocation-loop repro also fails in the same spot when tool-calling updates conversation id.
Error Messages / Stack Traces
AttributeError: 'dict' object has no attribute 'conversation_id' and no __dict__ for setting new attributes
Package Versions
agent-framework-core: source checkout at commit 02ba27493
Python Version
Python 3.13.5
Additional Context
This is in a hot path used by the function invocation loop for conversation-based providers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agentsIssues related to single agentsIssues related to single agentsbugSomething isn't workingSomething isn't workingpython