Skip to content

Commit 2e8e070

Browse files
committed
fix: silence false-positive context warning in react framework
react() serializes all aact() calls with sequential awaits, so the SimpleContext warning does not apply. Assisted-by: Claude Code Signed-off-by: Alex Bozarth <ajbozart@us.ibm.com>
1 parent 8a835c5 commit 2e8e070

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mellea/stdlib/frameworks/react.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ async def react(
9090
model_options=model_options,
9191
tool_calls=True,
9292
await_result=True,
93+
silence_context_type_warning=True,
9394
)
9495

9596
# Have to assert this due to type hints.
@@ -119,6 +120,7 @@ async def react(
119120
model_options=model_options,
120121
format=format,
121122
await_result=True,
123+
silence_context_type_warning=True,
122124
)
123125
assert isinstance(next_context, ChatContext)
124126
context = next_context

0 commit comments

Comments
 (0)