mit einem Klick
build-sample-matrix
// Build the matrix of all the samples throughout different frameworks.
// Build the matrix of all the samples throughout different frameworks.
Handles Azure SDK for .NET management-plane migrations from AutoRest/Swagger to TypeSpec; use for MPG, mgmt migration, or Azure.ResourceManager.* migration requests.
Roll dice using a random number generator. Use when asked to roll a die (d6, d20, etc.), roll dice, or generate a random dice roll.
Roll dice using a random number generator.
Generate the code from typespec for C#. Parameter: C# SDK repository root location <cs_root>.
Generate a test given sample. Parameters: <cs_root> C# SDK repository root; <package_name> Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; <sample_name> the sample to use as a starting point for the test.
Translate the Azure SDK sample from python to C# and generate markdownn file for the sample. Parameters: <cs_root> C# SDK repository root; <python_root> python SDK repository root; <package_name> Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; <sample_name> The name of sample file in Python SDK repository.
| name | build-sample-matrix |
| description | Build the matrix of all the samples throughout different frameworks. |
The source code repositories and samples are organized in the following structure:
| Language | Repository | Samples | Notes |
|---|---|---|---|
| Python | https://github.com/Azure/azure-sdk-for-python.git | https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples | All samples are organized by folders according to their topic. In most cases the sample has sync and async implementation. For example, feature.py and feature_async.py are demonstrating sync and async features. |
| C# | https://github.com/Azure/azure-sdk-for-net.git | https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Projects/tests/Samples, https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Extensions.OpenAI/tests/Samples, https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Projects.Agents/tests/Samples | C# sample consists of two parts: the source code in the folder /sdk/ai/<package_name>/tests/Samples and corresponding .md files go to /sdk/ai/<package_name>/Samples, where <package_name> is Azure.AI.Projects, Azure.AI.Extensions.OpenAI or Azure.AI.Projects.Agents |
| JavaScript | https://github.com/Azure/azure-sdk-for-js.git | https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-projects/samples | The samples are split by two folders stable version (v2) and beta (v2-beta). Each of these folders contain samples for JavaScript and Typescript. Samples are further split by folders according to their topics. |
| Java | https://github.com/Azure/azure-sdk-for-java.git | https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/ai/azure-ai-agents/src/samples/java/com/azure/ai/agents and https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/ai/azure-ai-projects/src/samples | java code consists of two packagfes: azure-ai-projects and azure-ai-agents. Both of these projects contain samples, organized by folders according to their topics. |
Please use Server github-mcp-server, analyze samples and build the sample matrix in an Markdown format for developers to create missing samples. Here is an example. Let us say we have two samples: "Agents CRUD" and "Agents with default projects". Foo is present only in Python an C# and Bar is present only in Java and JavaScript.
| Feature | Description | Python | C# | JavaScript | Java |
|---|---|---|---|---|---|
| Foo | Demonstrate Agents CRUD operations | Agents basic, Agents basic async | Agents basic | !!!Absent!!! | !!!Absent!!! |
| Bar | Demonstrate Agents with default projects | !!!Absent!!! | !!!Absent!!! | [Agents with default projects](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-projects/samples/v2/javascript/agents/agentBasicWithDefaultProject.js, https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-projects/samples/v2/typescript/src/agents/agentBasicWithDefaultProject.ts) | !!!Absent!!! |
Validate links in the generated file by running:
python validate_links.py path/to/file.md
python3 validate_links.py path/to/file.md