Interface "AOAI Function"
Methods
GetPrompt
Get the prompt for the Function. Function prompt object describes the Function and the should contain the following fields: - Type: The name of the Function, currently only function type is supported. For functions following fields are allowed: -- Name: The name of the Function. (Required) -- Description: The description of the Function. (Optional) -- Parameters: The parameters of the Function. (Required) More details can be found here: https://go.microsoft.com/fwlink/?linkid=2254538
procedure GetPrompt(): JsonObject
Returns
Type | Description |
---|---|
JsonObject |
Execute
This function is invoked as a response from Azure Open AI. -Arguments: The expected parameters of the Function defined. The function returns a variant, and it's up to the implementation to decide what to return.
procedure Execute(Arguments: JsonObject): Variant
Parameters
Name | Type | Description |
---|---|---|
Arguments | JsonObject |
Returns
Type | Description |
---|---|
Variant |
GetName
Get the name of the function.
procedure GetName(): Text
Returns
Type | Description |
---|---|
Text |
Remarks
This needs to match the function name in GetPrompt.