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

Function parse

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

Source from the content-addressed store, hash-verified

1174 results: dict[str, object] = {}
1175
1176 def parse(key: str) -> None:
1177 try:
1178 if key == "validate":
1179 results[key] = Model.model_validate({"name": "x"})
1180 else:
1181 results[key] = construct_type(type_=Model, value={"name": "x"})
1182 except Exception as e:
1183 results[key] = e
1184
1185 threads = {
1186 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