Skip to content

Commit 48b908b

Browse files
authored
Emit from TypeSpec and fix samples & tests following move of some beta methods to GA (#47552)
1 parent 4152411 commit 48b908b

41 files changed

Lines changed: 8137 additions & 8247 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sdk/ai/azure-ai-projects/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
## 2.3.0 (Unreleased)
44

5+
### Features Added
6+
7+
* Hosted agents are now stable. There is need to set `allow_preview=True` on the `AIProjectClient` constructor to create a Hosted agent.
8+
* Toolboxes operations are now stable. The have moved from `.beta.toolboxes` subclient to the `.toolboxes` subclient.
9+
* Session and Session files operations are now stable. They have moved from the `.beta.agents` subclient to the `.agents` subclient.
10+
* Agent code operations are now stable. This includes `create_version_from_code` and `download_code`. They have moved from the `.beta.agents` subclient to the `.agents` subclient.
11+
512
### Breaking Changes
613

714
Breaking changes in beta methods:

sdk/ai/azure-ai-projects/PostEmitter.ps1

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,6 @@
1717
# See GitHub issue: https://github.com/microsoft/typespec/issues/10311
1818
git restore pyproject.toml
1919

20-
21-
# Edit both _operations.py files to fix missing Foundry-Features HTTP request header in continued list paging calls. Add:
22-
# headers=_headers
23-
# to the end of each of these lines in the BetaXxxOperations classes (do not do this in GA operations classes!)
24-
# "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
25-
# In emitted code, these first 7 of those lines are associated with GA operations, so start the replacement
26-
# from the 8th occurrence onward.
27-
$gaCount = 7
28-
$old = [char]34 + 'GET' + [char]34 + ', urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params'
29-
$new = $old + ', headers=_headers'
30-
foreach ($f in 'azure\ai\projects\aio\operations\_operations.py', 'azure\ai\projects\operations\_operations.py') {
31-
$c = Get-Content $f -Raw
32-
$parts = $c -split [regex]::Escape($old)
33-
$r = $parts[0]
34-
for ($i = 1; $i -lt $parts.Length; $i++) {
35-
if ($i -le $gaCount) {
36-
$r += $old + $parts[$i]
37-
} else {
38-
$r += $new + $parts[$i]
39-
}
40-
}
41-
Set-Content $f $r -NoNewline
42-
}
43-
4420
# Force streaming in get_session_log_stream for both sync and async operations.
4521
$files = 'azure\ai\projects\operations\_operations.py', 'azure\ai\projects\aio\operations\_operations.py'
4622
foreach ($f in $files) {

0 commit comments

Comments
 (0)