Skip to content

Commit 4fabb95

Browse files
committed
fix: remove unnecessary model_config from AgentCoreMemoryConfig
Pydantic v2 handles Callable natively, so arbitrary_types_allowed is not needed. Removing it avoids any risk of breaking subclasses or downstream validators.
1 parent d00706e commit 4fabb95

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • src/bedrock_agentcore/memory/integrations/strands

src/bedrock_agentcore/memory/integrations/strands/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from typing import Any, Callable, Dict, Optional
44

5-
from pydantic import BaseModel, ConfigDict, Field, field_validator
5+
from pydantic import BaseModel, Field, field_validator
66

77

88
def normalize_metadata(raw: Dict[str, Any]) -> Dict[str, Any]:
@@ -53,8 +53,6 @@ class AgentCoreMemoryConfig(BaseModel):
5353
Accepts plain strings (auto-wrapped) or explicit MetadataValue dicts.
5454
"""
5555

56-
model_config = ConfigDict(arbitrary_types_allowed=True)
57-
5856
memory_id: str = Field(min_length=1)
5957
session_id: str = Field(min_length=1)
6058
actor_id: str = Field(min_length=1)

0 commit comments

Comments
 (0)