- Export InsightBus, Insight from reasoning/__init__.py - Export PersistentLearningStore from memory/__init__.py - Add test_insight_bus.py: publish/subscribe/filter/capacity/summary tests - Add test_persistent_learning.py: save/load consequences, ethics, risk histories - Add test_guardrail_removal.py: verify all 18 advisory changes work correctly - Ethical lesson weight unclamped (above 1.0, below 0.0) - SelfModel.evolve_value() positive/negative/new values - Adaptive risk window grows with experience - World model self-modification prediction - MAA gate advisory by default - URL validation advisory by default - Plugin head ethics/consequence hooks 452 tests passing, 0 ruff errors. Co-Authored-By: Nakamoto, S <defi@defi-oracle.io>
92 lines
2.3 KiB
Python
92 lines
2.3 KiB
Python
"""Reasoning engine: chain-of-thought, tree-of-thought, and native symbolic reasoning."""
|
|
|
|
from fusionagi.reasoning.cot import (
|
|
build_cot_messages,
|
|
run_chain_of_thought,
|
|
)
|
|
from fusionagi.reasoning.decomposition import decompose_recursive
|
|
from fusionagi.reasoning.gpu_scoring import (
|
|
deduplicate_claims_gpu,
|
|
generate_and_score_gpu,
|
|
score_claims_gpu,
|
|
)
|
|
from fusionagi.reasoning.insight_bus import Insight, InsightBus
|
|
from fusionagi.reasoning.interpretability import (
|
|
ReasoningTrace,
|
|
ReasoningTracer,
|
|
TraceStep,
|
|
)
|
|
from fusionagi.reasoning.meta_reasoning import (
|
|
challenge_assumptions,
|
|
detect_contradictions,
|
|
revisit_node,
|
|
)
|
|
from fusionagi.reasoning.metacognition import (
|
|
KnowledgeGap,
|
|
MetacognitiveAssessment,
|
|
assess_head_outputs,
|
|
)
|
|
from fusionagi.reasoning.multi_path import generate_and_score_parallel
|
|
from fusionagi.reasoning.native import (
|
|
NativeReasoningProvider,
|
|
PromptAnalysis,
|
|
analyze_prompt,
|
|
produce_head_output,
|
|
)
|
|
from fusionagi.reasoning.recomposition import RecomposedResponse, recompose
|
|
from fusionagi.reasoning.super_big_brain import (
|
|
SuperBigBrainConfig,
|
|
SuperBigBrainReasoningProvider,
|
|
run_super_big_brain,
|
|
)
|
|
from fusionagi.reasoning.tot import (
|
|
ThoughtBranch,
|
|
ThoughtNode,
|
|
ToTResult,
|
|
expand_node,
|
|
merge_subtrees,
|
|
prune_subtree,
|
|
run_tree_of_thought,
|
|
run_tree_of_thought_detailed,
|
|
)
|
|
|
|
__all__ = [
|
|
"build_cot_messages",
|
|
"run_chain_of_thought",
|
|
"run_tree_of_thought",
|
|
"run_tree_of_thought_detailed",
|
|
"ThoughtBranch",
|
|
"ThoughtNode",
|
|
"ToTResult",
|
|
"expand_node",
|
|
"prune_subtree",
|
|
"merge_subtrees",
|
|
"NativeReasoningProvider",
|
|
"analyze_prompt",
|
|
"produce_head_output",
|
|
"PromptAnalysis",
|
|
"decompose_recursive",
|
|
"load_context_for_reasoning",
|
|
"build_compact_prompt",
|
|
"generate_and_score_parallel",
|
|
"recompose",
|
|
"RecomposedResponse",
|
|
"challenge_assumptions",
|
|
"detect_contradictions",
|
|
"revisit_node",
|
|
"generate_and_score_gpu",
|
|
"score_claims_gpu",
|
|
"deduplicate_claims_gpu",
|
|
"MetacognitiveAssessment",
|
|
"KnowledgeGap",
|
|
"assess_head_outputs",
|
|
"ReasoningTrace",
|
|
"ReasoningTracer",
|
|
"TraceStep",
|
|
"run_super_big_brain",
|
|
"SuperBigBrainConfig",
|
|
"SuperBigBrainReasoningProvider",
|
|
"Insight",
|
|
"InsightBus",
|
|
]
|