Buckets:

download
raw
943 Bytes
"""
Unit tests for AMPOEngine.
Constitutional Hash: 608508a9bd224290
"""
import pytest
pytest.importorskip("enhanced_agent_bus.sdpc")
from enhanced_agent_bus.deliberation_layer.intent_classifier import IntentType
from enhanced_agent_bus.sdpc.ampo_engine import AMPOEngine
def test_ampo_factual_compilation():
engine = AMPOEngine()
prompt = engine.compile(IntentType.FACTUAL, "What is GDP?")
assert "factual precision agent" in prompt
assert "GROUNDING" in prompt
assert "What is GDP?" in prompt
def test_ampo_creative_compilation():
engine = AMPOEngine()
prompt = engine.compile(IntentType.CREATIVE, "Write a poem")
assert "creative assistant" in prompt
assert "Write a poem" in prompt
def test_ampo_reasoning_compilation():
engine = AMPOEngine()
prompt = engine.compile(IntentType.REASONING, "Solve for x")
assert "reasoning agent" in prompt
assert "step-by-step logic" in prompt

Xet Storage Details

Size:
943 Bytes
·
Xet hash:
b07d0305abf49224549c6cb94725127d5e37ad245454674899636cb270fd9ab8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.