add test case for explicit None

This commit is contained in:
jmorganca 2024-11-23 18:22:38 -08:00
parent 00c64332cc
commit 1e22f2e118

View File

@ -45,6 +45,9 @@ class SubscriptableBaseModel(BaseModel):
>>> msg['tool_calls'] = [Message.ToolCall(function=Message.ToolCall.Function(name='foo', arguments={}))]
>>> 'tool_calls' in msg
True
>>> msg['tool_calls'] = None
>>> 'tool_calls' in msg
True
>>> tool = Tool()
>>> 'type' in tool
True