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

Class User

tests/test_utils/test_json.py:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24 def test_pydantic_model_serialization(self) -> None:
25 class User(pydantic.BaseModel):
26 first_name: str
27 last_name: str
28 age: int
29
30 model_instance = User(first_name="John", last_name="Kramer", age=83)
31 data = {"model": model_instance}

Calls

no outgoing calls