MCPcopy Create free account
hub / github.com/langroid/langroid / complex_nested_xml_tool

Function complex_nested_xml_tool

tests/main/test_xml_tool_message.py:399–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397
398@pytest.fixture
399def complex_nested_xml_tool():
400 return ComplexNestedXMLTool(
401 person=Person(
402 name="Jane Doe",
403 age=28,
404 address=Address(street="456 Elm St", city="Somewhere", country="Canada"),
405 ),
406 hobbies=["painting", "hiking"],
407 phones={"mobile": 5551234567, "work": 5559876543},
408 friends=[
409 Person(
410 name="John Doe",
411 age=30,
412 address=Address(street="123 Main St", city="Anytown", country="USA"),
413 ),
414 Person(
415 name="Jack Doe",
416 age=32,
417 address=Address(street="789 Oak St", city="Anywhere", country="UK"),
418 ),
419 ],
420 )
421
422
423def test_format_complex_nested(complex_nested_xml_tool: ComplexNestedXMLTool):

Callers

nothing calls this directly

Calls 3

PersonClass · 0.85
AddressClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…