Skip to content

Commit 7e3a3b7

Browse files
author
Eric Camplin
committed
3-configure-function-choices.md acrolinx update
1 parent bd066f2 commit 7e3a3b7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

learn-pr/wwl-azure/give-your-ai-agent-skills/includes/3-configure-function-choices.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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.
22

33
## Function Advertising
44

@@ -31,7 +31,7 @@ By registering your plugin classes with the kernel, all of their functions becom
3131

3232
::: zone pivot="python"
3333

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.
3535

3636
```python
3737
import os
@@ -100,7 +100,7 @@ Use `Plugins.GetFunction` to select specific functions to advertise to the model
100100

101101
::: zone pivot="python"
102102

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.
104104

105105
```python
106106
# 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
149149

150150
::: zone pivot="python"
151151

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.
153153

154154
```python
155155
# 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
186186

187187
- **Auto**: The model can choose from zero or more functions.
188188
- **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.
190190

191191
::: zone pivot="csharp"
192192

@@ -196,8 +196,8 @@ Use the `FunctionChoiceBehavior` class to configure these behaviors in C#.
196196

197197
::: zone pivot="python"
198198

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.
200200

201201
::: zone-end
202202

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

Comments
 (0)