Replies: 1 comment
-
@HarryWhy, we're tracking this in the issue #12864. Closing as a duplicate. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi all,
can any one help to take a look at this issue? i am using semantic kernel Python library and ,
i am running a multi-agent GroupChatOrchestration() in my project.
now it is running like this:
when an agent A in the groupchat is invoked, the agent will:
1st step: call GPT to suggest a tool;
2nd step: tool response with it result to agent;
3rd step: Agent uses tool's result and sends a subsequence request to GTP to generate the agent (final)response.
what we want is:
we want the 3rd step be ignored.
because the 2nd step we are retrieving lots of structure data, we just want the agent to use tool's result as the agent (final)response.(in fact we added instruction to agent prompt to let him do nothing but just use tool's result). but now the 3rd step costs lots of tokens and seconds but just bring tool's result in and return tool's result back(as we request him to do like this).
then i tried this:
by using
@kernel.filter(FilterTypes.AUTO_FUNCTION_INVOCATION)
async def auto_function_invocation_filter(context: AutoFunctionInvocationContext,next) -> None:
await next(context)
context.terminate = True
to terminate a function call just after it gets result.
it terminated after tool gets result, so the 3rd step is not triggered and the Agent finish its job, but when the next agent B is invoked(be selected by group manager as next participant). checking on the chat history(context), the agent A response content is '[]' - an empty list. seems the agent doesn't use tool result as its response in this case.

then we lost the (agent A)tool's result in the whole group chat context. and cannot do any future processing.
just want to see if any one has solved this issue and appreciate your help!!
Beta Was this translation helpful? Give feedback.
All reactions