Skip to content

optimize user_goal_agent,next_action_agent#1386

Merged
yileicn merged 2 commits into
SciSharp:masterfrom
yileicn:master
Jul 25, 2026
Merged

optimize user_goal_agent,next_action_agent#1386
yileicn merged 2 commits into
SciSharp:masterfrom
yileicn:master

Conversation

@yileicn

@yileicn yileicn commented Jul 24, 2026

Copy link
Copy Markdown
Member

No description provided.

@qodo-code-review

Copy link
Copy Markdown
Contributor

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@yileicn
yileicn requested review from Oceania2018 and Copilot July 24, 2026 03:40
@yuyixg

yuyixg commented Jul 24, 2026

Copy link
Copy Markdown

reviewed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the routing reasoner prompt and function schema metadata to better align next_action_agent selection with the active user_goal_agent, improving agent routing consistency in BotSharp’s core agent infrastructure.

Changes:

  • Refines the reasoner.naive.liquid routing instructions to prioritize continuity of user_goal_agent and next_action_agent unless a new task starts.
  • Updates route_to_agent.json parameter descriptions to reflect routing based on latest message + active goal.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/templates/reasoner.naive.liquid Adjusts prompt guidance for inferring/retaining next_action_agent and user_goal_agent.
src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/functions/route_to_agent.json Clarifies schema descriptions for routing parameters (latest response + active goal).
Comments suppressed due to low confidence (1)

src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/templates/reasoner.naive.liquid:13

  • Similar to the next-action guidance above, using snake_case variable names in the prose here can make the instruction less clear and may leak identifiers into the model output. Consider rewriting in natural language for consistency.
user_goal_agent is inferred from the user's active goal.
Keep the existing user_goal_agent unless the latest user message explicitly starts a different task or workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yileicn
yileicn merged commit 3be142f into SciSharp:master Jul 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants