@azure-tools/typespec-azure-resource-manager 0.71.0-dev.12 → 0.71.0-dev.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base-types/agent.tsp +9 -6
- package/package.json +7 -7
package/lib/base-types/agent.tsp
CHANGED
|
@@ -56,7 +56,8 @@ internal model AgentDefinition {
|
|
|
56
56
|
/**
|
|
57
57
|
* Appliance deployment model of AgentDefinition.
|
|
58
58
|
* Properties controlled by `@baseTypeOptional` are invisible when the corresponding
|
|
59
|
-
* template parameter is false,
|
|
59
|
+
* template parameter is false. When present, `instructions` is read-only while
|
|
60
|
+
* `modelDeploymentRef` stays writable so the client can point the agent at a model deployment.
|
|
60
61
|
* @template HasModelDeploymentRef Whether the modelDeploymentRef property is present.
|
|
61
62
|
* @template HasInstructions Whether the instructions property is present.
|
|
62
63
|
*/
|
|
@@ -72,8 +73,8 @@ model AgentDefinitionAppliance<
|
|
|
72
73
|
@baseTypeOptional(HasInstructions, true)
|
|
73
74
|
instructions: string;
|
|
74
75
|
|
|
75
|
-
/** Optional RP-specific reference to an underlying model deployment. */
|
|
76
|
-
@baseTypeOptional(HasModelDeploymentRef,
|
|
76
|
+
/** Optional RP-specific reference to an underlying model deployment. Writable in both deployment models. */
|
|
77
|
+
@baseTypeOptional(HasModelDeploymentRef, false)
|
|
77
78
|
modelDeploymentRef?: string;
|
|
78
79
|
}
|
|
79
80
|
|
|
@@ -125,7 +126,10 @@ internal model AgentProperties {
|
|
|
125
126
|
|
|
126
127
|
/**
|
|
127
128
|
* Appliance deployment model of AgentProperties.
|
|
128
|
-
* All properties are read-only (the appliance owns and reports state)
|
|
129
|
+
* All properties are read-only (the appliance owns and reports state), except the `definition`
|
|
130
|
+
* container itself: it stays writable so the client can send the fields the agent definition
|
|
131
|
+
* marks as writable, such as `modelDeploymentRef`. Every service-owned field inside the
|
|
132
|
+
* definition remains read-only.
|
|
129
133
|
* @template AgentDefinitionType The user-defined agent definition model (must extend AgentDefinition).
|
|
130
134
|
*/
|
|
131
135
|
model AgentPropertiesAppliance<AgentDefinitionType extends AgentDefinition> {
|
|
@@ -141,8 +145,7 @@ model AgentPropertiesAppliance<AgentDefinitionType extends AgentDefinition> {
|
|
|
141
145
|
@visibility(Lifecycle.Read)
|
|
142
146
|
description: string;
|
|
143
147
|
|
|
144
|
-
/** Inline agent definition. */
|
|
145
|
-
@visibility(Lifecycle.Read)
|
|
148
|
+
/** Inline agent definition. The container is writable so the client can set the definition fields that are not service-owned. */
|
|
146
149
|
definition: AgentDefinitionType;
|
|
147
150
|
|
|
148
151
|
/** Tool bindings. Read-only in the Appliance deployment model. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.71.0-dev.
|
|
3
|
+
"version": "0.71.0-dev.13",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@azure-tools/typespec-azure-core": "^0.70.0 || >= 0.71.0-dev.4",
|
|
51
|
-
"@typespec/http": "^1.14.0",
|
|
52
51
|
"@typespec/compiler": "^1.14.0",
|
|
53
|
-
"@typespec/rest": "^0.84.0",
|
|
54
52
|
"@typespec/openapi": "^1.14.0",
|
|
55
|
-
"@typespec/versioning": "^0.84.0"
|
|
53
|
+
"@typespec/versioning": "^0.84.0",
|
|
54
|
+
"@typespec/http": "^1.14.0",
|
|
55
|
+
"@typespec/rest": "^0.84.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@azure-tools/typespec-azure-core": "^0.70.0 || >= 0.71.0-dev.4",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"typescript": "~6.0.2",
|
|
65
65
|
"vitest": "^4.1.3",
|
|
66
66
|
"@typespec/compiler": "^1.14.0",
|
|
67
|
-
"@typespec/
|
|
67
|
+
"@typespec/http": "^1.14.0",
|
|
68
68
|
"@typespec/rest": "^0.84.0",
|
|
69
|
-
"@typespec/versioning": "^0.84.0",
|
|
70
69
|
"@typespec/tspd": "^0.76.0",
|
|
71
|
-
"@typespec/
|
|
70
|
+
"@typespec/versioning": "^0.84.0",
|
|
71
|
+
"@typespec/library-linter": "^0.84.0",
|
|
72
72
|
"@typespec/openapi": "^1.14.0"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|