Replies: 2 comments
-
Hi @vslepakov, As you're seeing, when you configure .Required(), you're telling the model that it must invoke a tool/plugin during every turn -- which can lead to unexpected behavior for general prompts like "Who are you?". From your description, it sounds like you'd prefer the model to use tools when needed based on context, but still ensure fresh data when the situation demands it. That leans more toward To better understand your case and explore potential workarounds, a few questions:
|
Beta Was this translation helpful? Give feedback.
-
Hi @moonbox3, sorry for the delayed response.
As a workaround for now, we're using Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
I'm using a
ChatCompletionAgent
with multiple plugins and have setFunctionChoiceBehavior.Required()
to ensure certain plugin functions are always invoked, keeping data fresh. However, this causes unintended function calls for prompts like "Who are you?"Is there a way to use
FunctionChoiceBehavior.Auto()
to let the AI decide when to call functions, while still enforcing invocation of specific plugin functions when necessary? Right now, when using auto function calling the LLM sometimes decides not to invoke a function because the data (might be stale) is present in the chat history.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions