Qiao-yq opened a new pull request, #1558:
URL: https://github.com/apache/dubbo-admin/pull/1558

   **Please provide a description of this PR:**
   
   Separate the ReAct agent prompt into shared, act-phase, and final-answer 
policies. The final-answer prompt now explicitly has no tools and relies only 
on evidence already present in the conversation.
   
   This also simplifies the shared prompt around stable diagnostic principles, 
treats external context as untrusted data, defines behavior for incomplete 
evidence, and removes redundant tool-name injection and infrastructure-specific 
rules.
   
   Adds prompt rendering tests covering phase-policy isolation, tool binding, 
final-answer tool exclusion, and percent-character preservation.
   
   Closes #1539
   
   **To help us figure out who should review this PR, please put an X in all 
the areas that this PR affects.**
   
   - [ ] Docs
   - [ ] Installation
   - [x] User Experience
   - [ ] Dubboctl
   - [ ] Console
   - [x] Core Component
   
   **Please check any characteristics that apply to this pull request.**
   
   - [x] Includes tests
   
   **Testing:**
   
   - `cd ai && go test -count=1 ./...`
   - `cd ai && go vet ./component/agent/react/...`
   - `git diff --check`


-- 
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