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
:::code language="java" source="~/functions-openai-extension/samples/{{link to the correct sample.java}}" range="{{named is better than range}}":::
47
+
This example demonstrates how to create an assistant that adds a new todo task to a database. The trigger has a static description of `Create a new todo task` used by the model. The function itself takes a string, which represents a new task to add. When executed, the function adds the task as a new todo item in a custom item store and returns a response from the store.
This example demonstrates how to create an assistant that adds a new todo task to a database. The trigger has a static description of `Create a new todo task` used by the model. The function itself takes a string, which represents a new task to add. When executed, the function adds the task as a new todo item in a custom item store and returns a response from the store.
73
+
74
+
Here's the _function.json_ file for Add Todo:
78
75
79
-
:::code language="json" source="~/functions-openai-extension/samples/{{link to the correct function.json}}" :::
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.
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}}" :::
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.
@@ -34,23 +34,20 @@ A C# function can be created using one of the following C# modes:
34
34
This example demonstrates the creation process, where the HTTP POST function that sends user prompts to the assistant chat bot. The response to the prompt is returned in the HTTP response.
:::code language="java" source="~/functions-openai-extension/samples/{{link to the correct sample.java}}" range="{{named is better than range}}":::
47
+
This example demonstrates the creation process, where the HTTP POST function that sends user prompts to the assistant chat bot. The response to the prompt is returned in the HTTP response.
This example demonstrates the creation process, where the HTTP POST function that sends user prompts to the assistant chat bot. The response to the prompt is returned in the HTTP response.
72
+
73
+
Here's the _function.json_ file for post user query:
78
74
79
-
:::code language="json" source="~/functions-openai-extension/samples/{{link to the correct function.json}}" :::
:::code language="powershell" source="~/functions-openai-extension/samples/{{link to the correct sample.ps1}}" :::
86
-
-->
87
81
::: zone-end
88
82
::: zone pivot="programming-language-python"
89
83
This example demonstrates the creation process, where the HTTP POST function that sends user prompts to the assistant chat bot. The response to the prompt is returned in the HTTP response.
@@ -162,5 +156,5 @@ See the [Example section](#example) for complete examples.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-openai-assistantquery-input.md
+16-19Lines changed: 16 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
-
title: Azure OpenAI assistant query input binding for Azure Functions
2
+
title: Azure OpenAI Assistant Query Input Binding for Azure Functions
3
3
description: Learn how to use the Azure OpenAI assistant query input binding to access Azure OpenAI Assistants APIs during function execution in Azure Functions.
:::code language="java" source="~/functions-openai-extension/samples/{{link to the correct sample.java}}" range="{{named is better than range}}":::
47
+
This example demonstrates the creation process, where the HTTP GET function that queries the conversation history of the assistant chat bot. The response to the prompt is returned in the HTTP response.
@@ -67,24 +66,22 @@ This example demonstrates the creation process, where the HTTP GET function that
67
66
68
67
This example demonstrates the creation process, where the HTTP GET function that queries the conversation history of the assistant chat bot. The response to the prompt is returned in the HTTP response.
This example demonstrates the creation process, where the HTTP GET function that queries the conversation history of the assistant chat bot. The response to the prompt is returned in the HTTP response.
79
75
80
-
:::code language="json" source="~/functions-openai-extension/samples/{{link to the correct function.json}}" :::
76
+
77
+
Here's the _function.json_ file for Get Chat State:
:::code language="powershell" source="~/functions-openai-extension/samples/{{link to the correct sample.ps1}}" :::
87
-
-->
88
85
::: zone-end
89
86
::: zone pivot="programming-language-python"
90
87
This example demonstrates the creation process, where the HTTP GET function that queries the conversation history of the assistant chat bot. The response to the prompt is returned in the HTTP response.
0 commit comments