Replies: 1 comment
-
Right now, you can achieve that by wrapping your specific AIFunction in one that terminates the function processing loop, e.g. class TerminateAIFunction(AIFunction func) : DelegatingAIFunction(func)
{
protected override ValueTask<object?> InvokeCoreAsync(AIFunctionArguments arguments, CancellationToken cancellationToken)
{
FunctionInvokingChatClient.CurrentContext!.Terminate = true;
return null;
}
} Once #6695 lands, it'll provide a cleaner way, as you'll be able to specify non-invocable functions for which call requests will pass right through the FunctionInvokingChatClient. |
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.
-
I want to use M.E.AI as an AI proxy server. When UseFunctionInvocation() is enabled, how can I specify that the AIFunction from the proxy server uses Invocation, while the AIFunction from the client does not use Invocation?
Beta Was this translation helpful? Give feedback.
All reactions