Skip to content

Commit e56ae35

Browse files
Merge pull request #6273 from sdgilley/sdg-updates
Add Typescript
2 parents 131f350 + b4f2cda commit e56ae35

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

articles/ai-foundry/includes/get-started-fdp.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,21 @@ No installation is necessary to use the Azure AI Foundry portal.
100100
> [!NOTE]
101101
> All the code in this article is at [GitHub Quickstart](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/javascript/mslearn-resources/quickstart).
102102
103+
# [TypeScript](#tab/typescript)
104+
105+
1. [Install Node.js and Azure CLI](../how-to/develop/install-cli-sdk.md?pivots=programming-language-javascript)
106+
1. Make sure to sign in using the CLI `az login` (or `az login --use-device-code`) command to authenticate before running your TypeScript scripts.
107+
1. Download [package.json](https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/typescript/mslearn-resources/quickstart/package.json).
108+
1. Install packages with `npm install`
109+
1. [!INCLUDE [find-endpoint](find-endpoint.md)]
110+
1. Set these environment variables to use in your scripts:
111+
112+
:::code language="plaintext" source="~/foundry-samples-main/samples/microsoft/typescript/mslearn-resources/quickstart/.env.template":::
113+
114+
115+
> [!NOTE]
116+
> All the code in this article is at [GitHub Quickstart](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/typescript/mslearn-resources/quickstart).
117+
103118
# [C#](#tab/csharp)
104119
105120
1. [Install C# and Azure CLI](../how-to/develop/install-cli-sdk.md?pivots=programming-language-csharp)
@@ -160,6 +175,10 @@ Substitute your endpoint for the `endpoint` in this code:
160175
161176
:::code language="javascript" source="~/foundry-samples-main/samples/microsoft/javascript/mslearn-resources/quickstart/src/quickstart.js" id="chat_completion":::
162177
178+
# [TypeScript](#tab/typescript)
179+
180+
:::code language="typescript" source="~/foundry-samples-main/samples/microsoft/typescript/mslearn-resources/quickstart/src/quickstart.ts" id="chat_completion":::
181+
163182
164183
# [C#](#tab/csharp)
165184
@@ -200,6 +219,10 @@ Substitute your endpoint for the `endpoint` in this code:
200219
201220
:::code language="javascript" source="~/foundry-samples-main/samples/microsoft/javascript/mslearn-resources/quickstart/src/quickstart.js" id="create_and_run_agent" :::
202221
222+
# [TypeScript](#tab/typescript)
223+
224+
:::code language="typescript" source="~/foundry-samples-main/samples/microsoft/typescript/mslearn-resources/quickstart/src/quickstart.ts" id="create_and_run_agent" :::
225+
203226
# [C#](#tab/csharp)
204227
205228
:::code language="csharp" source="~/foundry-samples-main/samples/microsoft/csharp/mslearn-resources/quickstart/Samples/AgentService.cs" id="create_and_run_agent" :::
@@ -246,6 +269,10 @@ Substitute your endpoint for the `endpoint` in this code:
246269
247270
:::code language="javascript" source="~/foundry-samples-main/samples/microsoft/javascript/mslearn-resources/quickstart/src/quickstart.js" id="create_filesearch_agent":::
248271
272+
# [TypeScript](#tab/typescript)
273+
274+
:::code language="typescript" source="~/foundry-samples-main/samples/microsoft/typescript/mslearn-resources/quickstart/src/quickstart.ts" id="create_filesearch_agent":::
275+
249276
# [C#](#tab/csharp)
250277
251278
:::code language="csharp" source="~/foundry-samples-main/samples/microsoft/csharp/mslearn-resources/quickstart/Samples/AgentFileSearch.cs" id="create_filesearch_agent":::

0 commit comments

Comments
 (0)