{
  "title": "Codeunit 7778 AOAI Tools Impl",
  "url": "https://jonas-paprotka.de/ref/codeunit/7778-aoai-tools-impl/",
  "author": "Jonas Paprotka",
  "license": "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link.",
  "subject": "Microsoft Dynamics 365 Business Central",
  "checked": "2026-09-20",
  "source": {
    "feed": "https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json",
    "package": "Microsoft.SystemApplication.symbols.63ca2fa4-4f03-4f2b-a480-172fef340d3f",
    "build": "28.5.54151.54365",
    "code": {
      "24": {
        "url": "https://jonas-paprotka.de/ref/codeunit/7778-aoai-tools-impl/source/24/",
        "repo": "https://github.com/microsoft/BCApps",
        "branch": "releases/24.x",
        "commit": "fe14d3e6db00d28df3a69c7bba830813d70794e2",
        "path": "src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al",
        "license": "MIT"
      },
      "25": {
        "url": "https://jonas-paprotka.de/ref/codeunit/7778-aoai-tools-impl/source/25/",
        "repo": "https://github.com/microsoft/BCApps",
        "branch": "releases/25.x",
        "commit": "68d52c129129c83b2e396a473aaa5b2ce61d2eed",
        "path": "src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al",
        "license": "MIT"
      },
      "26": {
        "url": "https://jonas-paprotka.de/ref/codeunit/7778-aoai-tools-impl/source/26/",
        "repo": "https://github.com/microsoft/BCApps",
        "branch": "releases/26.x",
        "commit": "78c4acf0d64a8eee157ea80164fa8fc2acffc9eb",
        "path": "src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al",
        "license": "MIT"
      },
      "27": {
        "url": "https://jonas-paprotka.de/ref/codeunit/7778-aoai-tools-impl/source/27/",
        "repo": "https://github.com/microsoft/BCApps",
        "branch": "releases/27.x",
        "commit": "1749020b4c9445a43e4f7f540e89b7fa76ec25fd",
        "path": "src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al",
        "license": "MIT"
      },
      "28": {
        "url": "https://jonas-paprotka.de/ref/codeunit/7778-aoai-tools-impl/source/28/",
        "repo": "https://github.com/microsoft/BCApps",
        "branch": "releases/28.x",
        "commit": "740f59156b249f8ed7cba2e28423f03ae7b07233",
        "path": "src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al",
        "license": "MIT"
      },
      "29": {
        "url": "https://jonas-paprotka.de/ref/codeunit/7778-aoai-tools-impl/source/29/",
        "repo": "https://github.com/microsoft/BCApps",
        "branch": "releases/29.x",
        "commit": "a66254c3b8b5bb1cea290dc8f9d097aec4381153",
        "path": "src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al",
        "license": "MIT"
      }
    },
    "note": "Presence per major, highest build of each; 17 is the oldest major on the feed. Local procedures are not listed."
  },
  "object": {
    "type": "codeunit",
    "id": 7778,
    "name": "AOAI Tools Impl",
    "app": "System Application",
    "appByVersion": [
      {
        "app": "System Application",
        "from": 24
      }
    ],
    "nameByVersion": [
      {
        "name": "AOAI Tools Impl",
        "from": 24
      }
    ],
    "namespace": "System.AI",
    "versions": "24-28",
    "majors": [
      24,
      25,
      26,
      27,
      28
    ],
    "extends": null,
    "sourceTable": null,
    "sourceFile": "AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al",
    "obsolete": null,
    "obsoleteSeenFrom": null,
    "byVersion": {
      "24": {
        "app": "system-application",
        "name": "AOAI Tools Impl",
        "ns": "System.AI",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 18,
          "values": 0
        },
        "stub": false
      },
      "25": {
        "app": "system-application",
        "name": "AOAI Tools Impl",
        "ns": "System.AI",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 18,
          "values": 0
        },
        "stub": false
      },
      "26": {
        "app": "system-application",
        "name": "AOAI Tools Impl",
        "ns": "System.AI",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 18,
          "values": 0
        },
        "stub": false
      },
      "27": {
        "app": "system-application",
        "name": "AOAI Tools Impl",
        "ns": "System.AI",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 18,
          "values": 0
        },
        "stub": false
      },
      "28": {
        "app": "system-application",
        "name": "AOAI Tools Impl",
        "ns": "System.AI",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 14,
          "values": 0
        },
        "stub": false
      }
    },
    "fields": [],
    "keys": [],
    "procedures": [
      {
        "name": "AddTool",
        "sig": "(Interface AOAI Function)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "GetTool",
        "sig": "(Text, var Interface AOAI Function)",
        "returns": "Boolean",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "Boolean",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "GetFunctionTools",
        "sig": "()",
        "returns": "List",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "List",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "AddTool",
        "sig": "(JsonObject)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": {
          "state": "Pending",
          "reason": "Use AddTool that takes in an AOAI Function interface instead.",
          "tag": "25.0"
        },
        "majors": [
          24,
          25,
          26,
          27
        ],
        "range": "24-27",
        "first": 24,
        "last": 27,
        "obsoleteSince": 24,
        "spans": [
          {
            "from": 24,
            "to": 27,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": {
              "state": "Pending",
              "reason": "Use AddTool that takes in an AOAI Function interface instead.",
              "tag": "25.0"
            }
          }
        ]
      },
      {
        "name": "ModifyTool",
        "sig": "(Integer, JsonObject)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": {
          "state": "Pending",
          "reason": "Use ModifyTool that takes in an AOAI Function interface instead.",
          "tag": "25.0"
        },
        "majors": [
          24,
          25,
          26,
          27
        ],
        "range": "24-27",
        "first": 24,
        "last": 27,
        "obsoleteSince": 24,
        "spans": [
          {
            "from": 24,
            "to": 27,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": {
              "state": "Pending",
              "reason": "Use ModifyTool that takes in an AOAI Function interface instead.",
              "tag": "25.0"
            }
          }
        ]
      },
      {
        "name": "DeleteTool",
        "sig": "(Integer)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": {
          "state": "Pending",
          "reason": "Use DeleteTool that takes in a function name instead.",
          "tag": "25.0"
        },
        "majors": [
          24,
          25,
          26,
          27
        ],
        "range": "24-27",
        "first": 24,
        "last": 27,
        "obsoleteSince": 24,
        "spans": [
          {
            "from": 24,
            "to": 27,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": {
              "state": "Pending",
              "reason": "Use DeleteTool that takes in a function name instead.",
              "tag": "25.0"
            }
          }
        ]
      },
      {
        "name": "GetTools",
        "sig": "()",
        "returns": "List",
        "kind": "procedure",
        "access": "public",
        "obsolete": {
          "state": "Pending",
          "reason": "Use GetTool() that takes in a function name and var for AOAI Function interface.",
          "tag": "25.0"
        },
        "majors": [
          24,
          25,
          26,
          27
        ],
        "range": "24-27",
        "first": 24,
        "last": 27,
        "obsoleteSince": 24,
        "spans": [
          {
            "from": 24,
            "to": 27,
            "returns": "List",
            "kind": "procedure",
            "access": "public",
            "obsolete": {
              "state": "Pending",
              "reason": "Use GetTool() that takes in a function name and var for AOAI Function interface.",
              "tag": "25.0"
            }
          }
        ]
      },
      {
        "name": "DeleteTool",
        "sig": "(Text)",
        "returns": "Boolean",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "Boolean",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "ClearTools",
        "sig": "()",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "PrepareTools",
        "sig": "()",
        "returns": "JsonArray",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "JsonArray",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "ToolsExists",
        "sig": "()",
        "returns": "Boolean",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "Boolean",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetAddToolToPayload",
        "sig": "(Boolean)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetToolChoice",
        "sig": "(Text)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetFunctionAsToolChoice",
        "sig": "(Interface AOAI Function)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetFunctionAsToolChoice",
        "sig": "(Text)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "GetToolChoice",
        "sig": "()",
        "returns": "Text",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24,
          25,
          26,
          27,
          28
        ],
        "range": "24-28",
        "first": 24,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 28,
            "returns": "Text",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "IsToolsList",
        "sig": "(Text)",
        "returns": "Boolean",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24
        ],
        "range": "24",
        "first": 24,
        "last": 24,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 24,
            "returns": "Boolean",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "ConvertToJsonArray",
        "sig": "(Text)",
        "returns": "JsonArray",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          24
        ],
        "range": "24",
        "first": 24,
        "last": 24,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 24,
            "to": 24,
            "returns": "JsonArray",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetToolInvokePreference",
        "sig": "(Enum AOAI Tool Invoke Preference)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          25,
          26,
          27,
          28
        ],
        "range": "25-28",
        "first": 25,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 25,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "GetToolInvokePreference",
        "sig": "()",
        "returns": "Enum AOAI Tool Invoke Preference",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          25,
          26,
          27,
          28
        ],
        "range": "25-28",
        "first": 25,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 25,
            "to": 28,
            "returns": "Enum AOAI Tool Invoke Preference",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      }
    ],
    "events": [],
    "values": []
  }
}