Skip to content

How we can print results of Selection Strategies in Multiagent Group Chat? #10217

Answered by crickman
lovedeepatsgit asked this question in Q&A
Discussion options

You must be logged in to vote

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 the KernelFunctionSelectionStrategy or KernelFunctionTerminationStrategy 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:

KernelFunctionSelectionStrategy strategy =
    new(terminationFunction, kernel)
    {
        //…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@crickman
Comment options

Answer selected by lovedeepatsgit
@lovedeepatsgit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants