Skip to content

Commit 9b26f12

Browse files
authored
fix:python Invert condition for merge_state deprecation check (CopilotKit#1749)
1 parent cc8c86b commit 9b26f12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk-python/copilotkit/langgraph_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __init__(
157157
if agent is not None:
158158
logger.warning("Warning: agent is deprecated, use graph instead")
159159

160-
if merge_state is None:
160+
if merge_state is not None:
161161
logger.warning("Warning: merge_state is deprecated, use copilotkit_config instead")
162162

163163
if graph is None and agent is None:

0 commit comments

Comments
 (0)