MCPcopy
hub / github.com/microsoft/agent-lightning / sample_resources

Function sample_resources

tests/test_client.py:28–37  ·  view source on GitHub ↗

Provides a sample NamedResources object for testing.

()

Source from the content-addressed store, hash-verified

26
27@pytest.fixture
28def sample_resources() -> NamedResources:
29 """Provides a sample NamedResources object for testing."""
30 return {
31 "main_llm": LLM(
32 endpoint="http://localhost:8080/v1/chat/completions",
33 model="gpt-4o",
34 sampling_parameters={"temperature": 0.8, "max_tokens": 500},
35 ),
36 "system_prompt": PromptTemplate(template="You are a master of {domain}.", engine="f-string"),
37 }
38
39
40@pytest.fixture

Callers

nothing calls this directly

Calls 2

LLMClass · 0.90
PromptTemplateClass · 0.90

Tested by

no test coverage detected