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

Function parse

tests/test_models.py:1195–1202  ·  view source on GitHub ↗
(key: str)

Source from the content-addressed store, hash-verified

1193 results: dict[str, object] = {}
1194
1195 def parse(key: str) -> None:
1196 try:
1197 if key == "validate":
1198 results[key] = Model.model_validate({"name": "x"})
1199 else:
1200 results[key] = construct_type(type_=Model, value={"name": "x"})
1201 except Exception as e:
1202 results[key] = e
1203
1204 threads = {
1205 key: threading.Thread(target=parse, args=(key,), daemon=True) for key in ("first", "construct", "validate")

Callers

nothing calls this directly

Calls 1

construct_typeFunction · 0.90

Tested by

no test coverage detected