Provides a sample NamedResources object for testing.
()
| 26 | |
| 27 | @pytest.fixture |
| 28 | def 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 |
nothing calls this directly
no test coverage detected