MCPcopy Create free account
hub / github.com/Emmimal/control-layer / simple_layer

Function simple_layer

tests/test_control_layer.py:48–55  ·  view source on GitHub ↗
(tmp_path, default_config)

Source from the content-addressed store, hash-verified

46
47@pytest.fixture
48def simple_layer(tmp_path, default_config):
49 default_config.audit_log_path = str(tmp_path / "audit.jsonl")
50 return ControlLayer(
51 llm_fn=lambda p: '{"summary": "ok", "confidence": 0.9}',
52 system_prompt="You are a test assistant.",
53 schema=ResponseSchema(must_be_json=True, required_keys=["summary", "confidence"]),
54 config=default_config,
55 )
56
57
58# =============================================================================

Callers

nothing calls this directly

Calls 2

ControlLayerClass · 0.90
ResponseSchemaClass · 0.90

Tested by

no test coverage detected