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
The Azure OpenAI assistant trigger lets you run your code based on custom chat bot or skill request made to an assistant.
14
14
15
15
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI assistants, see [Azure OpenAI Assistants API](../ai-services/openai/concepts/assistants.md).
16
-
::: zone pivot="programming-language-javascript,programming-language-typescript"
17
-
> [!NOTE]
18
-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
19
-
::: zone-end
20
-
::: zone pivot="programming-language-python"
21
-
> [!NOTE]
22
-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
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.
The Azure OpenAI assistant create output binding allows you to create a new assistant chat bot from your function code execution.
14
14
15
15
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI assistants, see [Azure OpenAI Assistants API](../ai-services/openai/concepts/assistants.md).
16
-
::: zone pivot="programming-language-javascript,programming-language-typescript"
17
-
> [!NOTE]
18
-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
19
-
::: zone-end
20
-
::: zone pivot="programming-language-python"
21
-
> [!NOTE]
22
-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
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.
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
54
77
55
Here's the _function.json_ file for Create Assistant:
The Azure OpenAI assistant post input binding lets you send prompts to assistant chat bots.
14
14
15
-
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI assistants, see [Azure OpenAI Assistants API](../ai-services/openai/concepts/assistants.md).
16
-
::: zone pivot="programming-language-javascript,programming-language-typescript"
17
-
> [!NOTE]
18
-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
19
-
::: zone-end
20
-
::: zone pivot="programming-language-python"
21
-
> [!NOTE]
22
-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
23
-
::: zone-end
15
+
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI assistants, see [Azure OpenAI Assistants API](../ai-services/openai/
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.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-openai-assistantquery-input.md
+5-23Lines changed: 5 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,46 +1,28 @@
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.
The Azure OpenAI assistant query input binding allows you to integrate Assistants API queries into your code executions.
14
14
15
15
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI assistants, see [Azure OpenAI Assistants API](../ai-services/openai/concepts/assistants.md).
16
-
::: zone pivot="programming-language-javascript,programming-language-typescript"
17
-
> [!NOTE]
18
-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
19
-
::: zone-end
20
-
::: zone pivot="programming-language-python"
21
-
> [!NOTE]
22
-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
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.
The Azure OpenAI embeddings input binding allows you to generate embeddings for inputs. The binding can generate embeddings from files or raw text inputs.
14
14
15
15
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about embeddings in Azure OpenAI Service, see [Understand embeddings in Azure OpenAI Service](../ai-services/openai/concepts/understand-embeddings.md).
16
-
::: zone pivot="programming-language-javascript,programming-language-typescript"
17
-
> [!NOTE]
18
-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
19
-
::: zone-end
20
-
::: zone pivot="programming-language-python"
21
-
> [!NOTE]
22
-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
0 commit comments