SelectionStrategy and its issues #9630
-
Hey team. Recently, I have been focusing a lot on the Agent Framework of SK and I have found it really interesting so far. However, I have recently encountered a few issues while using SelectionStrategy. I want to know what are some of the best examples of SelectionStrategy as I usually encounter issues. Below is one of the examples which I just encountered so I thought I should ask for the expert advice here. Note: I'm just extending on the examples which have been provided earlier in the Learn docs. Background I have got 4 agents.
Here's my SelectionFunction prompt: `KernelFunction selectionFunction =
Output I received |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This looks like the model is returning a list of agent names for the failed response:
Perhaps it had decided to anticipate the next 3 turns? I'd be curious how often this occurs and which model you are targeting for the selection strategy. In anycase, a couple thoughts come to mind:
Note: Here's an outline of the suggested JSON schema: {
"type": "object",
"additionalProperties": false,
"properties": {
"selectedagent": {
"type": "string",
"description": "the name of a single agent being selected"
},
"selectionreason": {
"type": "string",
"description": "the reason for selecting the specified agent"
}
},
"required": [
"selectedagent",
"selectionreason"
]
} |
Beta Was this translation helpful? Give feedback.
-
Thank you @crickman for this detailed explanation. I have now got the idea, and it gave me some other thoughts on improving it as well with the To answer your questions: I'm was GPT-4 but my idea was to use multiple models. The occurrences of multiple turns were very frequent until I played with prompts to restrict them. |
Beta Was this translation helpful? Give feedback.
This looks like the model is returning a list of agent names for the failed response:
Perhaps it had decided to anticipate the next 3 turns? I'd be curious how often this occurs and which model you are targeting for the selection strategy.
In anycase, a couple thoughts come to mind: