Skip to content

Commit 83d8a47

Browse files
dargilcoCopilot
andcommitted
Emit SDK from TypeSpec and apply post-emitter fixes
Co-authored-by: Copilot <[email protected]>
1 parent 16df03d commit 83d8a47

11 files changed

Lines changed: 1100 additions & 65 deletions

File tree

sdk/ai/azure-ai-projects/.github/skills/azure-ai-projects-emit-from-typespec/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Ask the user the following questions **one at a time**, waiting for each answer
3030

3131
Ask the user to choose **one** of the following two options for the target topic branch:
3232

33-
1. **Create a new topic branch (with default branch name)** – Create a new topic branch for the emitted changes. If selected, this default branch name will be used "<github-userid>/<emit-from-typespec-DD-MM-HH-MM>", where `github-userid` is the user's GitHub ID and `DD-MM-HHMM` is the current date-time using date, month, hour and minute. For example, if the GitHub ID is "dargilco" and the current date and time is May 1st, 2026 at 8:13am, the default branch name would be `dargilco/emit-from-typespec-01-05-0813`. This should be the default option. If you press enter without typing anything, this option will be selected.
33+
1. **Create a new topic branch (with default branch name)** – Create a new topic branch for the emitted changes. If selected, this default branch name will be used "<github-userid>/<emit-from-typespec-DD-MM-HH-MM>", where `github-userid` is the user's GitHub ID and `DD-MM-HHMM` is the current date-time using date, month, hour and minute. For example, if the GitHub ID is "dargilco" and the current date and time is May 1st, 2026 at 8:13am, the default branch name would be `dargilco/emit-from-typespec-01-05-0813`. This should be the default option, and the default branch name should be displayed. If you press enter without typing anything, this option will be selected.
3434

3535
2. **Create a new topic branch (branch name given by user)** - Ask the user for the branch name. Mention that a common format is "<github-userid>/<work-title>". If the user enters a branch name `feature/azure-ai-projects/2.2.0` then stop and report that they cannot emit directly to the current feature branch.
3636

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* New `.beta.datasets` sub-client with data generation job operations: `create_generation_job`, `get_generation_job`, `list_generation_jobs`, `cancel_generation_job`, `delete_generation_job`.
1111
* New read-only property `content_hash` on `CodeConfiguration`, returning the SHA-256 hex digest of the uploaded code zip.
1212
* New evaluator generation job operations on `.beta.evaluators`: `create_generation_job`, `get_generation_job`, `list_generation_jobs`, `cancel_generation_job`, `delete_generation_job`.
13+
* New methods on `.beta.agents` sub-client for code-based hosted agents: `update_agent_from_code()`, `create_agent_version_from_code()`, `download_agent_version_code()`, `download_agent_code()`.
14+
* New enum `CodeDependencyResolution` with values `BUNDLED` and `REMOTE_BUILD`, controlling how package dependencies are resolved at deployment time.
1315

1416
### Breaking Changes
1517

@@ -18,6 +20,8 @@ Breaking changes in beta operations:
1820
* Required property `isolation_key_source` removed from class `EntraAuthorizationScheme`.
1921
* Required keyword argument `isolation_key` removed from `.beta.agents.create_session()` and `.beta.agents.delete_session()` methods.
2022
* Argument `body` in methods `.beta.evaluation_taxonomies.create()` and `.beta.evaluation_taxonomies.update()` renamed to `taxonomy`.
23+
* Removed enum value `DataGenerationJobType.TASK`.
24+
* Removed model `TaskDataGenerationJobOptions`.
2125

2226
### Bugs Fixed
2327

sdk/ai/azure-ai-projects/apiview-properties.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
"azure.ai.projects.models.EvaluationRuleAction": "Azure.AI.Projects.EvaluationRuleAction",
8686
"azure.ai.projects.models.ContinuousEvaluationRuleAction": "Azure.AI.Projects.ContinuousEvaluationRuleAction",
8787
"azure.ai.projects.models.CosmosDBIndex": "Azure.AI.Projects.CosmosDBIndex",
88+
"azure.ai.projects.models.CreateAgentVersionFromCodeContent": "Azure.AI.Projects.CreateAgentVersionFromCodeContent",
89+
"azure.ai.projects.models.CreateAgentVersionFromCodeRequest": "Azure.AI.Projects.CreateAgentVersionFromCodeRequest",
8890
"azure.ai.projects.models.Trigger": "Azure.AI.Projects.Trigger",
8991
"azure.ai.projects.models.CronTrigger": "Azure.AI.Projects.CronTrigger",
9092
"azure.ai.projects.models.CustomCredential": "Azure.AI.Projects.CustomCredential",
@@ -239,7 +241,6 @@
239241
"azure.ai.projects.models.SpecificFunctionShellParam": "OpenAI.SpecificFunctionShellParam",
240242
"azure.ai.projects.models.StructuredInputDefinition": "Azure.AI.Projects.StructuredInputDefinition",
241243
"azure.ai.projects.models.StructuredOutputDefinition": "Azure.AI.Projects.StructuredOutputDefinition",
242-
"azure.ai.projects.models.TaskDataGenerationJobOptions": "Azure.AI.Projects.TaskDataGenerationJobOptions",
243244
"azure.ai.projects.models.TaxonomyCategory": "Azure.AI.Projects.TaxonomyCategory",
244245
"azure.ai.projects.models.TaxonomySubCategory": "Azure.AI.Projects.TaxonomySubCategory",
245246
"azure.ai.projects.models.TelemetryConfig": "Azure.AI.Projects.TelemetryConfig",
@@ -298,6 +299,7 @@
298299
"azure.ai.projects.models.ContainerSkillType": "OpenAI.ContainerSkillType",
299300
"azure.ai.projects.models.SearchContextSize": "OpenAI.SearchContextSize",
300301
"azure.ai.projects.models.AgentProtocol": "Azure.AI.Projects.AgentProtocol",
302+
"azure.ai.projects.models.CodeDependencyResolution": "Azure.AI.Projects.CodeDependencyResolution",
301303
"azure.ai.projects.models.TelemetryEndpointKind": "Azure.AI.Projects.TelemetryEndpointKind",
302304
"azure.ai.projects.models.TelemetryDataKind": "Azure.AI.Projects.TelemetryDataKind",
303305
"azure.ai.projects.models.TelemetryEndpointAuthType": "Azure.AI.Projects.TelemetryEndpointAuthType",

sdk/ai/azure-ai-projects/azure/ai/projects/_utils/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from .._utils.model_base import Model, SdkJSONEncoder
1212

13+
1314
# file-like tuple could be `(filename, IO (or bytes))` or `(filename, IO (or bytes), content_type)`
1415
FileContent = Union[str, bytes, IO[str], IO[bytes]]
1516

0 commit comments

Comments
 (0)