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
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/give-your-ai-agent-skills/includes/3-configure-function-choices.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Function advertising and function choice behavior allow developers to control how the AI model accesses and invokes external functions during execution. These let you tailor the AI's responses based on specific scenarios, such as integrating with APIs for real-time data, restricting functionality for privacy or security, or enhancing the relevance of responses by narrowing the available functions. By strategically managing these behaviors, developers can optimize their AI application's performance.
1
+
Function advertising and function choice behavior allow developers to control how the AI model accesses and invokes external functions during execution. These Advertized Functions let you tailor the AI's responses based on specific scenarios, such as integrating with APIs for real-time data, restricting functionality for privacy or security, or enhancing the relevance of responses by narrowing the available functions. By strategically managing Function advertising behaviors, developers can optimize their AI application's performance.
2
2
3
3
## Function Advertising
4
4
@@ -31,7 +31,7 @@ By registering your plugin classes with the kernel, all of their functions becom
31
31
32
32
::: zone pivot="python"
33
33
34
-
By registering your plugin classes with the kernel, all of their functions become available to the AI model. The model can then automatically choose from any of these functions based on the prompt. In Python, use `add_plugin` to register your plugin classes and their functions.
34
+
When you register plugin classes with the kernel, all of their functions become available to the AI model. The model can then automatically choose from any of these functions based on the prompt. In Python, use `add_plugin` to register your plugin classes and their functions.
35
35
36
36
```python
37
37
import os
@@ -100,7 +100,7 @@ Use `Plugins.GetFunction` to select specific functions to advertise to the model
100
100
101
101
::: zone pivot="python"
102
102
103
-
You control which functions are available by only registering the plugins you want the model to access. The SDK does not currently support restricting advertised functions directly in settings.
103
+
You control which functions are available by only registering the plugins you want the model to access. The SDK doesn't currently support restricting advertised functions directly in settings.
104
104
105
105
```python
106
106
# As of SK 1.31, Python SDK does not support restricting advertised functions directly in settings.
@@ -149,7 +149,7 @@ Set the `FunctionChoiceBehavior` to use an empty list of functions to disable fu
149
149
150
150
::: zone pivot="python"
151
151
152
-
In Python, do not register any plugins with the kernel to disable function calling.
152
+
In Python, don't register any plugins with the kernel to disable function calling.
153
153
154
154
```python
155
155
# In Python, you can disable function calling by not registering any plugins,
@@ -186,7 +186,7 @@ The Semantic Kernel SDK provides several ways to configure how functions are adv
186
186
187
187
-**Auto**: The model can choose from zero or more functions.
188
188
-**Required**: The model is encouraged or required to choose at least one function.
189
-
-**None**: The model cannot choose any functions.
189
+
-**None**: The model can't choose any functions.
190
190
191
191
::: zone pivot="csharp"
192
192
@@ -196,8 +196,8 @@ Use the `FunctionChoiceBehavior` class to configure these behaviors in C#.
196
196
197
197
::: zone pivot="python"
198
198
199
-
In Python, these behaviors are controlled by which plugins you register and, in some cases, by prompt engineering. The SDK does not currently provide direct equivalents for all C# behaviors.
199
+
In Python, these function behaviors are controlled by which plugins you register and, in some cases, by prompt engineering. The SDK doesn't currently provide direct equivalents for all C# behaviors.
200
200
201
201
::: zone-end
202
202
203
-
Function choice behaviors provide developers with flexible options for controlling how functions are advertised and invoked by AI models. By understanding and leveraging these behaviors, you can fine-tune AI interactions to suit specific application requirements.
203
+
Function choice behaviors provide developers with flexible options for controlling how functions are advertised and invoked by AI models. By understanding and using these behaviors, you can fine-tune AI interactions to suit specific application requirements.
0 commit comments