Skip to content

Commit

Permalink
fix(types): allow extra properties in input schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Jan 14, 2025
1 parent 32c3e1a commit d0961c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/anthropic/types/tool_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import Dict, Union, Optional
from typing_extensions import Literal, Required, TypeAlias, TypedDict

from .._models import set_pydantic_config
from .cache_control_ephemeral_param import CacheControlEphemeralParam

__all__ = ["ToolParam", "InputSchema"]
Expand All @@ -15,6 +16,7 @@ class InputSchemaTyped(TypedDict, total=False):

properties: Optional[object]

set_pydantic_config(InputSchemaTyped, {"extra": "allow"})

InputSchema: TypeAlias = Union[InputSchemaTyped, Dict[str, object]]

Expand Down

0 comments on commit d0961c2

Please sign in to comment.