refactor: replace mock reasoning with real LLM-based engine
- Rewrite core.py: all mock implementations replaced with real calls * _generate_plan() uses llm_chat from harnessed_agent for LLM-based planning * _execute_tool() calls harnessed_execute_tool for real tool execution * _get_memory_context() calls harnessed_get_intelligent_memory_context * _safety_check() with configurable strict/moderate/lenient modes * _try_recovery() for auto-recovery on common failures * All session persistence uses real database operations - Fix reasoning_console.ui: uitype 'textarea' -> 'text' per bricks spec - Add .gitignore The reasoning module now: 1. Calls LLM to analyze user request and generate execution plan 2. Safety-checks the plan before execution 3. Executes tools via harnessed_agent's tool system 4. Recovers from common errors automatically 5. Stores session history in database
This commit is contained in:
parent
e91a5554f6
commit
8108e86ab5
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
py3/
|
||||||
|
*.egg-info/
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
BIN
harnessed_reasoning/__pycache__/config_functions.cpython-311.pyc
Normal file
BIN
harnessed_reasoning/__pycache__/config_functions.cpython-311.pyc
Normal file
Binary file not shown.
BIN
harnessed_reasoning/__pycache__/core.cpython-311.pyc
Normal file
BIN
harnessed_reasoning/__pycache__/core.cpython-311.pyc
Normal file
Binary file not shown.
BIN
harnessed_reasoning/__pycache__/init.cpython-311.pyc
Normal file
BIN
harnessed_reasoning/__pycache__/init.cpython-311.pyc
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -27,7 +27,7 @@
|
|||||||
{
|
{
|
||||||
"name": "request",
|
"name": "request",
|
||||||
"label": "推理请求",
|
"label": "推理请求",
|
||||||
"uitype": "textarea",
|
"uitype": "text",
|
||||||
"required": true,
|
"required": true,
|
||||||
"rows": 4,
|
"rows": 4,
|
||||||
"placeholder": "请输入您的请求,例如:分析当前项目的安全问题并生成修复方案"
|
"placeholder": "请输入您的请求,例如:分析当前项目的安全问题并生成修复方案"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user