MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / client

Function client

methods/MIRIX/tests/test_memory_integration.py:90–101  ·  view source on GitHub ↗

Create a new MirixClient per test in the current loop (avoids shared httpx + closed loop).

(server_process, api_auth)

Source from the content-addressed store, hash-verified

88
89@pytest_asyncio.fixture
90async def client(server_process, api_auth):
91 """Create a new MirixClient per test in the current loop (avoids shared httpx + closed loop)."""
92 c = await MirixClient.create(
93 api_key=api_auth["api_key"],
94 base_url="http://localhost:8000",
95 debug=False,
96 )
97 config_path = project_root / "mirix" / "configs" / "examples" / "mirix_gemini.yaml"
98 await c.initialize_meta_agent(config_path=str(config_path), update_agents=False)
99 if c._meta_agent:
100 print(f"[OK] Meta agent ready: {c._meta_agent.id}")
101 return c
102
103
104# =================================================================

Callers

nothing calls this directly

Calls 2

initialize_meta_agentMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected