We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d7f2ff commit eb6d382Copy full SHA for eb6d382
src/agents/extensions/models/litellm_model.py
@@ -500,7 +500,7 @@ def _fix_tool_message_ordering(
500
return fixed_messages
501
502
def _remove_not_given(self, value: Any) -> Any:
503
- if isinstance(value, (NotGiven, type(omit))):
+ if value is omit or isinstance(value, NotGiven):
504
return None
505
return value
506
0 commit comments