Manual Invoke Support #1096
Replies: 2 comments 1 reply
-
|
Hi @tmnguyen1403, thanks for your question. We don't have the equivalent of In the meantime, I would have a look at our middleware, which is a similar concept to SK's filters, but I think more powerful. You can perform this filtering before sending a tool response to the model. We have samples here, please give it a read: https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/middleware/README.md |
Beta Was this translation helpful? Give feedback.
-
|
I just created a PR that adds support for declaration only functions, so between that and using approval_mode you can control what actually happens with your functions! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In Semantic Kernel (SK), I have the option to manual invoke the functions/tools. This allows me to filter out sensitive information before sending it to LLM model like username/password and only replace them when the LLM model response with the tool call and the filtered arguments. I am looking for the equivalent in AgentFramework but not being able to look for it so far. Is the capability implemented or any plan to support it?
Sample code from SK:
execution_settings = AzureChatPromptExecutionSettings()
execution_settings.function_choice_behavior = FunctionChoiceBehavior.Auto(auto_invoke=False)
result = await chat_completion_service.get_chat_message_content(chat_history=history,
settings=execution_settings, kernel=kernel)
Beta Was this translation helpful? Give feedback.
All reactions