Some checks failed
- Integrate GPU scoring inline into reasoning/multi_path.py (auto-uses GPU when available) - Integrate GPU deduplication into multi_agent/consensus_engine.py - Add semantic_search() method to memory/semantic_graph.py with GPU acceleration - Integrate GPU training into self_improvement/training.py AutoTrainer - Fix all 758 ruff lint issues (whitespace, import sorting, unused imports, ambiguous vars, undefined names) - Fix all 40 mypy type errors across the codebase (no-any-return, union-attr, arg-type, etc.) - Fix deprecated ruff config keys (select/ignore -> [tool.ruff.lint]) - Add .dockerignore to exclude .venv/, tests/, docs/ from Docker builds - Add type hints and docstrings to verification/outcome.py - Fix E402 import ordering in witness_agent.py - Fix F821 undefined names in vector_pgvector.py and native.py - Fix E741 ambiguous variable names in reflective.py and recommender.py All 276 tests pass. 0 ruff errors. 0 mypy errors. Co-Authored-By: Nakamoto, S <defi@defi-oracle.io>
65 lines
1.6 KiB
Python
65 lines
1.6 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.meta_reasoning import (
|
|
challenge_assumptions,
|
|
detect_contradictions,
|
|
revisit_node,
|
|
)
|
|
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.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",
|
|
]
|