Repository navigation
Can I make the framework to return the tool result directly, without rewriting or summarizing it via another LLM pass? #5437
|
I need the agent only do tool-routing without a second LLM call for final synthesis. Current behaviorWhen tools are enabled, the framework executes tool calls and then performs another LLM step to produce the final assistant response. Desired behavior
Is there any option setting or other method to achieve this? Thank you! |
Answered by
moonbox3
Apr 23, 2026
Replies: 1 comment 6 replies
|
Hi eison (@dlwangac), yes, this is done via middleware. Are you using MAF Python or C#? I can provide some samples depending on which language you're using. |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please have a look at this sample: https://github.com/microsoft/agent-framework/blob/main/python/samples/02-agents/middleware/override_result_with_middleware.py