| SetPrimarySystemMessage | (SecretText) | | public | 23-28 | - |
| AddSystemMessage | (Text) | | public | 23-28 | - |
| AddUserMessage | (Text) | | public | 23-28 | - |
| AddUserMessage | (Text, Text[2048]) | | public | 23-28 | - |
| AddAssistantMessage | (Text) | | public | 23-28 | - |
| ModifyMessage | (Integer, Text, Enum AOAI Chat Roles, Text[2048]) | | public | 23-28 | - |
| DeleteMessage | (Integer) | | public | 23-28 | - |
| GetHistory | () | List | public | 23-28 | - |
| GetHistoryNames | () | List | public | 23-28 | - |
| GetHistoryRoles | () | List | public | 23-28 | - |
| GetLastMessage | () | Text | public | 23-28 | - |
| GetLastRole | () | Enum AOAI Chat Roles | public | 23-28 | - |
| GetLastName | () | Text[2048] | public | 23-28 | - |
| SetHistoryLength | (Integer) | | public | 23-28 | - |
| AssembleHistory | (var Integer, var Integer) | JsonArray | internal | 23-28 | - |
| AddToolMessage | (Text, Text, Text) | | public | 24-28 | - |
| GetHistoryTokenCount | () | Integer | public | 24-28 | - |
| AddTool | (JsonObject) | | public | 24-27, gone | Pending 25.0 |
| Use AddTool that takes in an AOAI Function interface. |
| ModifyTool | (Integer, JsonObject) | | public | 24-27, gone | Pending 25.0 |
| Deprecated with no replacement. Use DeleteFunctionTool and AddTool. |
| DeleteTool | (Integer) | | public | 24-27, gone | Pending 25.0 |
| Use DeleteFunctionTool that takes in a function name instead. |
| AddTool | (Interface AOAI Function) | | public | 24-28 | - |
| DeleteFunctionTool | (Text) | Boolean | public | 24-28 | - |
| ClearTools | () | | public | 24-28 | - |
| GetFunctionTool | (Text, var Interface AOAI Function) | Boolean | public | 24-28 | - |
| GetFunctionTools | () | List | public | 24-28 | - |
| GetTools | () | List | public | 24-27, gone | Pending 25.0 |
| Use GetFunctionTool() that takes in a function name and returns the interface. |
| ToolsExists | () | Boolean | public | 24-28 | - |
| SetAddToolsToPayload | (Boolean) | | public | 24-28 | - |
| SetToolChoice | (Text) | | public | 24-28 | - |
| SetFunctionAsToolChoice | (Text) | | public | 24-28 | - |
| SetFunctionAsToolChoice | (Interface AOAI Function) | | public | 24-28 | - |
| GetToolChoice | () | Text | public | 24-28 | - |
| AssembleTools | () | JsonArray | internal | 24-28 | - |
| AddToolCalls | (JsonArray) | | internal | 25-28 | - |
| GetLastToolCalls | () | JsonArray | public | 25-28 | - |
| SetToolInvokePreference | (Enum AOAI Tool Invoke Preference) | | public | 25-28 | - |
| GetToolInvokePreference | () | Enum AOAI Tool Invoke Preference | public | 25-28 | - |
| AddXPIADetectionTags | (var Text) | | public | 27-28 | - |
| AddUserMessage | (Codeunit AOAI User Message) | | public | 28 | - |
| AddUserMessage | (Codeunit AOAI User Message, Text[2048]) | | public | 28 | - |
| CheckCompatibilityWithModel | (SecretText) | | internal | 28 | - |