MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / get_default_client

Function get_default_client

src/harness/llms/client.py:165–170  ·  view source on GitHub ↗

Get or create the default LLM client.

()

Source from the content-addressed store, hash-verified

163
164
165def get_default_client() -> LLMClient:
166 """Get or create the default LLM client."""
167 global _default_client
168 if _default_client is None:
169 _default_client = LLMClient()
170 return _default_client
171
172
173def completion(model: str, messages: List[Dict[str, Any]], **kwargs) -> Any:

Callers 1

completionFunction · 0.85

Calls 1

LLMClientClass · 0.85

Tested by

no test coverage detected