MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / PydanticV2Model

Class PydanticV2Model

tests/unit/test_serialization.py:55–62  ·  view source on GitHub ↗

Mock Pydantic v2 model with model_dump method.

Source from the content-addressed store, hash-verified

53
54
55class PydanticV2Model:
56 """Mock Pydantic v2 model with model_dump method."""
57
58 def __init__(self, **data):
59 self.__dict__.update(data)
60
61 def model_dump(self):
62 return self.__dict__
63
64
65class ModelWithParse:

Callers 3

test_pydantic_modelsMethod · 0.85
test_nested_objectsMethod · 0.85
test_pydantic_modelsMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_pydantic_modelsMethod · 0.68
test_nested_objectsMethod · 0.68
test_pydantic_modelsMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…