Upload alpha_factory/personas/__init__.py
Browse files
alpha_factory/personas/__init__.py
CHANGED
|
@@ -1,39 +1,12 @@
|
|
| 1 |
"""
|
| 2 |
Personas — LLM-powered agents.
|
| 3 |
-
|
| 4 |
"""
|
| 5 |
from .hypothesis_hunter import generate_hypothesis
|
| 6 |
from .expression_compiler import compile_expression
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
# from .performance_surgeon import diagnose_performance
|
| 11 |
-
# from .gatekeeper import gate_alpha
|
| 12 |
-
|
| 13 |
-
# Stubs so pipeline doesn't crash if something imports them
|
| 14 |
-
async def scout_novelty(*args, **kwargs):
|
| 15 |
-
"""STUB — not implemented in pipeline."""
|
| 16 |
-
from ..schemas import CrowdScoutResult, Verdict
|
| 17 |
-
return CrowdScoutResult(
|
| 18 |
-
max_corr_to_library=0.0, is_thematic_duplicate=False,
|
| 19 |
-
anomaly_already_saturated=False, verdict=Verdict.ITERATE, reason="stub"
|
| 20 |
-
)
|
| 21 |
-
|
| 22 |
-
async def diagnose_performance(*args, **kwargs):
|
| 23 |
-
"""STUB — not implemented in pipeline."""
|
| 24 |
-
from ..schemas import SurgeonResult, Verdict
|
| 25 |
-
return SurgeonResult(
|
| 26 |
-
regime_dependent=False, decay_detected=False, sign_error_likely=False,
|
| 27 |
-
iteration_suggestion="none", verdict=Verdict.ITERATE, reason="stub"
|
| 28 |
-
)
|
| 29 |
-
|
| 30 |
-
async def gate_alpha(*args, **kwargs):
|
| 31 |
-
"""STUB — not implemented in pipeline."""
|
| 32 |
-
from ..schemas import GatekeeperMemo
|
| 33 |
-
return GatekeeperMemo(
|
| 34 |
-
go_no_go=True, confidence=0.5, strengths=[], weaknesses=["not implemented"],
|
| 35 |
-
risks=["stub"], recommendation="manual review", full_memo="stub"
|
| 36 |
-
)
|
| 37 |
|
| 38 |
__all__ = [
|
| 39 |
"generate_hypothesis", "compile_expression",
|
|
|
|
| 1 |
"""
|
| 2 |
Personas — LLM-powered agents.
|
| 3 |
+
All personas are wired into the pipeline via real implementations.
|
| 4 |
"""
|
| 5 |
from .hypothesis_hunter import generate_hypothesis
|
| 6 |
from .expression_compiler import compile_expression
|
| 7 |
+
from .crowd_scout import scout_novelty
|
| 8 |
+
from .performance_surgeon import diagnose_performance
|
| 9 |
+
from .gatekeeper import gate_alpha
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
__all__ = [
|
| 12 |
"generate_hypothesis", "compile_expression",
|