MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / User

Class User

tests/test_utils/test_json.py:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48 def test_pydantic_model_serialization(self) -> None:
49 class User(pydantic.BaseModel):
50 first_name: str
51 last_name: str
52 age: int
53
54 model_instance = User(first_name="John", last_name="Kramer", age=83)
55 data = {"model": model_instance}

Calls

no outgoing calls