How we can print results of Selection Strategies in Multiagent Group Chat? #10217
Answered
by
crickman
lovedeepatsgit
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
crickman
Jan 22, 2025
Replies: 1 comment 2 replies
-
Tagging @crickman |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @lovedeepatsgit - Understanding the result of either the selection or termination strategy can certainly be critical.
In my response to one of your previous questions, I included a rough example of how you might intercept this value:
#10148
Since the
ResultParser
for either theKernelFunctionSelectionStrategy
orKernelFunctionTerminationStrategy
is simply a delegate, you can inject whatever logic you like as part of parsing the strategy result. This logic can include any type of diagnostic hook you may choose. For the developer environment, you may set a break-point.Using a lamba function: