Skip to content

Commit a343b44

Browse files
committed
Fix id generation issue
1 parent 237ca60 commit a343b44

File tree

4 files changed

+8
-23
lines changed

4 files changed

+8
-23
lines changed

sdk/agentserver/Azure.AI.AgentServer.AgentFramework/CHANGELOG.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Release History
22

3-
## 1.0.0-beta.4 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
3+
## 1.0.0-beta.4 (2025-11-11)
84

95
### Bugs Fixed
10-
11-
### Other Changes
6+
- Id generation issue
127

138
## 1.0.0-beta.3 (2025-11-10)
149

sdk/agentserver/Azure.AI.AgentServer.Contracts/CHANGELOG.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Release History
22

3-
## 1.0.0-beta.4 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
3+
## 1.0.0-beta.4 (2025-11-11)
84

95
### Bugs Fixed
10-
11-
### Other Changes
6+
- Id generation issue
127

138
## 1.0.0-beta.3 (2025-11-10)
149

sdk/agentserver/Azure.AI.AgentServer.Core/CHANGELOG.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Release History
22

3-
## 1.0.0-beta.4 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
3+
## 1.0.0-beta.4 (2025-11-11)
84

95
### Bugs Fixed
10-
11-
### Other Changes
6+
- Id generation issue
127

138
## 1.0.0-beta.3 (2025-11-10)
149

sdk/agentserver/Azure.AI.AgentServer.Core/src/Common/Id/FoundryIdGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ private static string ExtractPartitionId(string id, int stringLength = 32, int p
152152
throw new ArgumentException($"Id '{id}' does not contain a valid id.", nameof(id));
153153
}
154154

155-
// get last partitionKeyLength characters from the last part as the partition key
156-
var partitionId = parts[1][^partitionKeyLength..];
155+
// get first partitionKeyLength characters from the last part as the partition key
156+
var partitionId = parts[1][..partitionKeyLength];
157157
return partitionId;
158158
}
159159
}

0 commit comments

Comments
 (0)