Prompt Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Prompt() |
Initializes a new instance of Prompt for deserialization. |
| Prompt(String) |
Initializes a new instance of Prompt. |
| Prompt(String, String, ResponsePromptVariables, IDictionary<String,BinaryData>) |
Initializes a new instance of Prompt. |
Prompt(String)
- Source:
- Prompt.cs
Initializes a new instance of Prompt.
public Prompt(string id);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.Prompt : string -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.Prompt
Public Sub New (id As String)
Parameters
- id
- String
The unique identifier of the prompt template to use.
Exceptions
id is null.
Applies to
Prompt(String, String, ResponsePromptVariables, IDictionary<String,BinaryData>)
- Source:
- Prompt.cs
Initializes a new instance of Prompt.
public Prompt(string id, string version, Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsePromptVariables variables, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.Prompt : string * string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsePromptVariables * System.Collections.Generic.IDictionary<string, BinaryData> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.Prompt
Public Sub New (id As String, version As String, variables As ResponsePromptVariables, serializedAdditionalRawData As IDictionary(Of String, BinaryData))
Parameters
- id
- String
The unique identifier of the prompt template to use.
- version
- String
Optional version of the prompt template.
- variables
- ResponsePromptVariables
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.