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
4. Add your newly created Assistant's ID in the AOAI_ASSISTANT_ID environment variable.
73
-
74
-

75
-
76
-
5. Test on Web Chat - go to your Azure Bot resource on the Azure portal and look for the Web Chat feature on the left side menu.
66
+
3. Test on Web Chat - go to your Azure Bot resource on the Azure portal and look for the Web Chat feature on the left side menu.
77
67
78
68

79
69
@@ -106,4 +96,13 @@ To deploy a Web Chat version of your app:
106
96
- Add the secret to your App Service's environment variables, under the key DIRECT_LINE_SECRET;
107
97
- Your bot will be available at https://APP_NAME.azurewebsites.net.
108
98
109
-
Please note that doing so will make your bot public, unless you implement authentication / SSO.
99
+
Please note that doing so will make your bot public, unless you implement authentication / SSO.
100
+
101
+
### Creating custom functions
102
+
103
+
To update function calling behavior or create your own functions, follow the steps below.
104
+
105
+
- Go to [./src/Tools](./src/Tools/)
106
+
- Create or update a JSON file with the function specification. You may also copy files from [./src/ToolsSamples](./src/ToolsSamples/) into [./src/Tools](./src/Tools/)
107
+
- Go to `_Tools.cs` and create or update the method with the same name as the function's "name" field. **Use only lowercase characters and underscores for names**.
108
+
- Redeploy with `azd up`. The Assistant definition will be updated automatically.
0 commit comments