diff --git a/ollama/_types.py b/ollama/_types.py index 89a74f0..5be4850 100644 --- a/ollama/_types.py +++ b/ollama/_types.py @@ -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