-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Azure AI Projects SDK #47146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Azure AI Projects SDK #47146
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
9428389
Azure AI Agents
a96d37a
Move to ai folder
719865d
Public API
f94acf0
Regen
ce11704
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-net int…
0805a9b
Fix custom code
f4effd3
Fix factory
a36bef2
Fix issues
7f95fee
Update API
5b92ea7
Add a working sample
abf3be3
Update samples
8cb71bf
Update sample
1ff225f
Update samples
9f8ae77
Add connection string support
f272773
Remove model namespace
3edb6eb
Add config
09bf4ab
Cleanup
1e3957a
Update generated code
4243f96
Update package name
a620eb4
Add streaming
7b3bff7
Update package name to Azure.AI.Projects
ee76588
Add adapters to convert Azure.Core Response to SCM ClientResult to su…
annelo-msft 70d2f82
Update public API
90cc20a
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-net int…
aaac798
Regen code
dbfbd35
Rename OpenAI to Agent
e455117
[Azure.AI.Projects] Add support for Inference (#46972)
ShivangiReja e1fa8fe
Regenerate code with the latest TypeSpec
fbab0be
Add bing grounding sample
98c009d
Cleanup
cd55a6f
Add azure ai sample
bbc0c2f
Update README
6478b7d
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-net int…
a6a9979
Code regen
5f47da9
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-net int…
c7ed2d8
Update API
8cbe0d5
Update sample
b497659
Update README
6c89204
Add support for unbuffered response streams in Azure clients (#47166)
annelo-msft d1fa538
Update link
b9fd45f
Merge branch 'feature/azure-ai-sdk/agents' of https://github.com/Azur…
61550fb
Update eng/Packages.Data.props
ShivangiReja 34dedad
Update sdk/ai/Azure.AI.Projects/README.md
ShivangiReja 140d7ce
Fix csproj file
0dd6991
Merge branch 'feature/azure-ai-sdk/agents' of https://github.com/Azur…
8f05825
Setup a separate pipeline for projects
38e6942
Fix readme
b052b6e
Add empty line
2b9bd49
Update paths
49ce764
Fix sample
7442be1
Fix pielines
32750a4
Fix package name
18e8496
Feedback
5131594
Fix link issue
3b350f4
Azure.AI.projects sample update
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Feedback
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Release History | ||
|
|
||
| ## 1.0.0-beta.1 (Unreleased) | ||
| ## 1.0.0-beta.1 (2024-11-19) | ||
|
|
||
| ### Features Added | ||
| - Initial release | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| #nullable disable | ||
|
|
||
| using System; | ||
| using Azure.Identity; | ||
|
|
||
| namespace Azure.AI.Projects.Tests; | ||
|
|
||
| internal partial class Readme | ||
| { | ||
| public void CreateProjectClient() | ||
| { | ||
| #region Snippet:OverviewCreateClient | ||
| var connectionString = Environment.GetEnvironmentVariable("PROJECT_CONNECTION_STRING"); | ||
| AIProjectClient projectClient = new AIProjectClient(connectionString, new DefaultAzureCredential()); | ||
| #endregion | ||
| } | ||
|
|
||
| public void Troubleshooting() | ||
| { | ||
| var connectionString = Environment.GetEnvironmentVariable("PROJECT_CONNECTION_STRING"); | ||
| AgentsClient client = new AgentsClient(connectionString, new DefaultAzureCredential()); | ||
|
|
||
| #region Snippet:Readme_Troubleshooting | ||
| try | ||
| { | ||
| client.CreateMessage( | ||
| "1234", | ||
| MessageRole.User, | ||
| "I need to solve the equation `3x + 11 = 14`. Can you help me?"); | ||
| } | ||
| catch (RequestFailedException ex) when (ex.Status == 404) | ||
| { | ||
| Console.WriteLine($"Exception status code: {ex.Status}"); | ||
| Console.WriteLine($"Exception message: {ex.Message}"); | ||
| } | ||
| #endregion | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.