You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by StefandewitSPS February 25, 2025
I am using C# Semantic Kernel (1.38.0-alpha). I am wondering how I can temporarily stop the model from making tool calls to, for example, ask the user an intermediate question.
An example of this:
User input: "Give me the information about organization 'example'."
Now, a kernel function is called, which returns three results. Before the model proceeds with calling other functions, I want the user to first choose one of the organizations.
I tried solving this using an IAutoFunctionInvocationFilter, but it does not work when I set a schema on an agent using AssistantResponseFormat.CreateJsonSchemaFormat(). However, if I change this JSON schema to another option in the class, such as AssistantResponseFormat.JsonObject, it does work.
Could it be that IAutoFunctionInvocationFilter does not work in combination with AssistantResponseFormat.CreateJsonSchemaFormat(), or should I approach this differently? If so, how?
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Pausing Tool Calls in C# Semantic Kernel to Request User Input
.Net: Pausing Tool Calls in C# Semantic Kernel to Request User Input
Feb 25, 2025
Discussed in #10673
Originally posted by StefandewitSPS February 25, 2025
I am using C# Semantic Kernel (1.38.0-alpha). I am wondering how I can temporarily stop the model from making tool calls to, for example, ask the user an intermediate question.
An example of this:
User input: "Give me the information about organization 'example'."
Now, a kernel function is called, which returns three results. Before the model proceeds with calling other functions, I want the user to first choose one of the organizations.
I tried solving this using an IAutoFunctionInvocationFilter, but it does not work when I set a schema on an agent using AssistantResponseFormat.CreateJsonSchemaFormat(). However, if I change this JSON schema to another option in the class, such as AssistantResponseFormat.JsonObject, it does work.
Could it be that IAutoFunctionInvocationFilter does not work in combination with AssistantResponseFormat.CreateJsonSchemaFormat(), or should I approach this differently? If so, how?
The text was updated successfully, but these errors were encountered: