---
title: "Codeunit 132933 Azure OpenAI Test Library, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/points/
object: https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/
app: "System Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/
checked: 2026-11-20
changed: 2026-10-30
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 132933 Azure OpenAI Test Library, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/points/

7 procedures and triggers with a step in src/System Application/Test Library/AI/src/AzureOpenAITestLibrary.Codeunit.al, in source order, read from the text, not from a run.

## GetAOAIHistory

[Line 12](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L12).

- [17](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L17) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `SetHistoryLength`
- [18](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L18) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `AssembleHistory`

## GetAOAIAssembleTools

[Line 21](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L21).

- [23](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L23) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `AssembleTools`

## CheckAOAIChatMessagesCompatibilityWithModel

[Line 26](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L26).

- [28](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L28) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `CheckCompatibilityWithModel`

## GetAOAIChatCompletionParametersPayload

[Line 31](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L31).

- [33](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L33) calls [Codeunit 7761 AOAI Chat Completion Params](https://jonas-paprotka.de/ref/codeunit/7761-aoai-chat-completion-params/) `AddChatCompletionsParametersToPayload`

## SetAOAIFunctionResponse

[Line 36](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L36).

- [43](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L43) calls [Codeunit 7758 AOAI Function Response](https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/) `SetFunctionCallingResponse`

## AddAOAIFunctionResponse

[Line 46](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L46).

- [48](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L48) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `GetStatusCode`
- [49](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L49) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `SetOperationResponse`
- [50](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L50) calls `SetAOAIFunctionResponse`
- [51](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L51) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `AddFunctionResponse`

## SetToolCalls

[Line 59](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L59).

- [66](https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/#L66) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `AddToolCalls`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
