MCPcopy Create free account
hub / github.com/livekit/agents / _model_node

Function _model_node

tests/virtual_time.py:120–125  ·  view source on GitHub ↗

Descend `definitions` / validator wrappers to the `model` node holding the fields.

(schema: dict[str, Any])

Source from the content-addressed store, hash-verified

118
119
120def _model_node(schema: dict[str, Any]) -> dict[str, Any]:
121 """Descend `definitions` / validator wrappers to the `model` node holding the fields."""
122 node = schema
123 while node.get("type") != "model":
124 node = node["schema"]
125 return node
126
127
128# Built once, lazily: `model -> (patched_validator, original_validator)`. The patched validator

Callers 1

_build_patch_cacheFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected