larry-zy opened a new pull request, #1533:
URL: https://github.com/apache/dubbo-admin/pull/1533

   ## What
   
   Collapse the two-stage `reasonAct` / `observe` ReAct pipeline into one 
bounded reason-act loop.
   
   Each iteration is a single model call that either requests tools (whose 
results are fed back as context for the next iteration) or answers directly — a 
tool-free response *is* the final answer, so no separate `observe` reasoning 
step is needed to decide when to stop. The last allowed iteration drops the 
tools and forces a final answer, so the loop always terminates with a real 
reply rather than exhausting its budget in silence.
   
   ## Changes
   
   - Remove the orchestrator / state / step / runLoop scaffolding and the 
`fallback` handler package; drive the loop directly from `run()`.
   - Flatten `AgentSpec` to a single `prompt_file`; derive the tool-less answer 
prompt from the same system prompt plus an answer directive.
   - Drop the `agentObserve.txt` prompt; keep `agentReasonAct.txt`.
   - Update `agent.schema.json`, the config loader test, the e2e test and 
fixtures to the flat single-stage config.
   
   ## Scope
   
   Backend only — all changes are under `ai/`. No frontend (`ui-vue3/`) changes.
   
   ## Verification
   
   - `go build ./...` passes.
   - ReAct unit / step / flow tests updated to the single-loop shape.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to