Commit b92ea9b
committed
fix: restore original context passing behavior
Fixed a regression where Context parameter was only passed when it was
not None. The original behavior was to always pass the context parameter
when context_kwarg is set, even if the value is None.
This fixes test_call_tool_with_complex_model which calls a tool that
requires Context but provides None.
Root Cause:
- Changed `if context_kwarg is not None and context is not None` to
`if context_kwarg is not None` to match original behavior
Impact:
- Fixes failing test that expects Context parameter even when value is None
- Maintains backward compatibility with existing code1 parent ef0628f commit b92ea9b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments