1
1
---
2
- title : Azure OpenAI assistant create output binding for Azure Functions
2
+ title : Azure OpenAI Assistant Create Output Binding for Azure Functions
3
3
description : Learn how to use the Azure OpenAI assistant create output binding to create Azure OpenAI assistants from your function code executions.
4
4
ms.topic : reference
5
5
ms.date : 05/07/2024
6
6
zone_pivot_groups : programming-languages-set-functions
7
7
---
8
8
9
- # Azure OpenAI assistant create output binding for Azure Functions
9
+ # Azure OpenAI Assistant Create Output Binding for Azure Functions
10
10
11
11
[ !INCLUDE [ preview-support] ( ../../includes/functions-openai-support-limitations.md )]
12
12
@@ -35,22 +35,21 @@ This example demonstrates the creation process, where the HTTP PUT function that
35
35
36
36
:::code language="csharp" source="~ /functions-openai-extension/samples/assistant/csharp-ooproc/AssistantApis.cs" range="20-45":::
37
37
38
- ### [ In-process] ( #tab/in-process )
38
+ <!-- ### [In-process](#tab/in-process)
39
39
40
- [ !INCLUDE [ functions-examples-not-available-note] ( ../../includes/functions-examples-not-available-note.md )]
40
+ [!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
41
41
42
42
---
43
43
44
44
::: zone-end
45
45
::: zone pivot="programming-language-java"
46
- [ !INCLUDE [ functions-examples-not-available-note] ( ../../includes/functions-examples-not-available-note.md )]
47
- <!-- -uncomment when code example is available:
48
- {{This comes from the example code comment}}
46
+ <!-- [!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
47
+
48
+ This example demonstrates the creation process, where the HTTP PUT function that creates a new assistant chat bot with the specified ID. The response to the prompt is returned in the HTTP response.
49
+
50
+ :::code language="java" source="~ /functions-openai-extension/samples/assistant/java/src/main/java/com/azfs/AssistantApis.java" range="33-58":::
49
51
50
- :::code language="java" source="~/functions-openai-extension/samples/{{link to the correct sample.java}}" range="{{named is better than range}}":::
51
52
52
- {{Add more examples if available}}
53
- -->
54
53
::: zone-end
55
54
::: zone pivot="programming-language-javascript"
56
55
[ !INCLUDE [ functions-examples-not-available-note] ( ../../includes/functions-examples-not-available-note.md )]
@@ -71,19 +70,19 @@ This example demonstrates the creation process, where the HTTP PUT function that
71
70
72
71
::: zone-end
73
72
::: zone pivot="programming-language-powershell"
74
- [ !INCLUDE [ functions-examples-not-available-note] ( ../../includes/functions-examples-not-available-note.md )]
75
- <!-- -uncomment when code example is available:
76
- {{This comes from the example code comment}}
73
+ <!-- [!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
77
74
78
- Here's the _function.json_ file for {{example}}:
75
+ This example demonstrates the creation process, where the HTTP PUT function that creates a new assistant chat bot with the specified ID. The response to the prompt is returned in the HTTP response.
76
+
77
+ Here's the _ function.json_ file for Create Assistant:
79
78
80
- :::code language="json" source="~/functions-openai-extension/samples/{{link to the correct function.json}} " :::
79
+ :::code language="json" source="~ /functions-openai-extension/samples/assistant/powershell/CreateAssistant/ function.json" :::
81
80
82
81
For more information about * function.json* file properties, see the [ Configuration] ( #configuration ) section.
83
82
84
83
{{This comes from the example code comment}}
85
- :::code language="powershell" source="~/functions-openai-extension/samples/{{link to the correct sample .ps1}} " :::
86
- -->
84
+ :::code language="powershell" source="~ /functions-openai-extension/samples/assistant/powershell/CreateAssistant/run .ps1" :::
85
+
87
86
::: zone-end
88
87
::: zone pivot="programming-language-python"
89
88
This example demonstrates the creation process, where the HTTP PUT function that creates a new assistant chat bot with the specified ID. The response to the prompt is returned in the HTTP response.
@@ -161,5 +160,5 @@ See the [Example section](#example) for complete examples.
161
160
+ [ Assistant samples] ( https://github.com/Azure/azure-functions-openai-extension/tree/main/samples/assistant )
162
161
+ [ Azure OpenAI extension] ( functions-bindings-openai.md )
163
162
+ [ Azure OpenAI assistant trigger] ( functions-bindings-openai-assistant-trigger.md )
164
- + [ Azure OpenAI assistant query input binding ] ( functions-bindings-openai-assistantcreate-output.md )
165
- + [ Azure OpenAI assistant post input binding ] ( functions-bindings-openai-assistantpost-input.md )
163
+ + [ Azure OpenAI assistant query input binding] ( functions-bindings-openai-assistantcreate-output.md )
164
+ + [ Azure OpenAI assistant post input binding] ( functions-bindings-openai-assistantpost-input.md )
0 commit comments