@azure-tools/typespec-azure-resource-manager 0.71.0-dev.14 → 0.71.0-dev.15
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/README.md
CHANGED
|
@@ -700,7 +700,7 @@ multiple base types. Duplicate entries are ignored.
|
|
|
700
700
|
|
|
701
701
|
```typespec
|
|
702
702
|
// Agent definition and properties using the Appliance deployment model
|
|
703
|
-
model ContosoApplianceDefinition is AgentDefinitionAppliance<true
|
|
703
|
+
model ContosoApplianceDefinition is AgentDefinitionAppliance<true>;
|
|
704
704
|
model ContosoApplianceProperties is AgentPropertiesAppliance<ContosoApplianceDefinition> {
|
|
705
705
|
...DefaultProvisioningStateProperty;
|
|
706
706
|
}
|
|
@@ -15,7 +15,7 @@ export interface BaseTypeInfo {
|
|
|
15
15
|
* @example
|
|
16
16
|
* ```typespec
|
|
17
17
|
* // Agent definition and properties using the Appliance deployment model
|
|
18
|
-
* model ContosoApplianceDefinition is AgentDefinitionAppliance<true
|
|
18
|
+
* model ContosoApplianceDefinition is AgentDefinitionAppliance<true>;
|
|
19
19
|
* model ContosoApplianceProperties is AgentPropertiesAppliance<ContosoApplianceDefinition> {
|
|
20
20
|
* ...DefaultProvisioningStateProperty;
|
|
21
21
|
* }
|
package/lib/base-types/agent.tsp
CHANGED
|
@@ -56,15 +56,11 @@ 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
|
|
60
|
-
*
|
|
61
|
-
* @template HasModelDeploymentRef Whether the modelDeploymentRef property is present.
|
|
59
|
+
* template parameter is false, or read-only when present. The appliance owns the whole
|
|
60
|
+
* agent definition, so there is no `modelDeploymentRef` property in this deployment model.
|
|
62
61
|
* @template HasInstructions Whether the instructions property is present.
|
|
63
62
|
*/
|
|
64
|
-
model AgentDefinitionAppliance<
|
|
65
|
-
HasModelDeploymentRef extends valueof boolean = false,
|
|
66
|
-
HasInstructions extends valueof boolean = false
|
|
67
|
-
> {
|
|
63
|
+
model AgentDefinitionAppliance<HasInstructions extends valueof boolean = false> {
|
|
68
64
|
/** Model identifier (RP-defined). */
|
|
69
65
|
@visibility(Lifecycle.Read)
|
|
70
66
|
`model`: string;
|
|
@@ -72,10 +68,6 @@ model AgentDefinitionAppliance<
|
|
|
72
68
|
/** System prompt / behavioral instructions for the agent. */
|
|
73
69
|
@baseTypeOptional(HasInstructions, true)
|
|
74
70
|
instructions: string;
|
|
75
|
-
|
|
76
|
-
/** Optional RP-specific reference to an underlying model deployment. Writable in both deployment models. */
|
|
77
|
-
@baseTypeOptional(HasModelDeploymentRef, false)
|
|
78
|
-
modelDeploymentRef?: string;
|
|
79
71
|
}
|
|
80
72
|
|
|
81
73
|
/**
|
|
@@ -126,10 +118,7 @@ internal model AgentProperties {
|
|
|
126
118
|
|
|
127
119
|
/**
|
|
128
120
|
* Appliance deployment model of AgentProperties.
|
|
129
|
-
* All properties are read-only (the appliance owns and reports state)
|
|
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.
|
|
121
|
+
* All properties are read-only (the appliance owns and reports state).
|
|
133
122
|
* @template AgentDefinitionType The user-defined agent definition model (must extend AgentDefinition).
|
|
134
123
|
*/
|
|
135
124
|
model AgentPropertiesAppliance<AgentDefinitionType extends AgentDefinition> {
|
|
@@ -145,7 +134,8 @@ model AgentPropertiesAppliance<AgentDefinitionType extends AgentDefinition> {
|
|
|
145
134
|
@visibility(Lifecycle.Read)
|
|
146
135
|
description: string;
|
|
147
136
|
|
|
148
|
-
/** Inline agent definition.
|
|
137
|
+
/** Inline agent definition. */
|
|
138
|
+
@visibility(Lifecycle.Read)
|
|
149
139
|
definition: AgentDefinitionType;
|
|
150
140
|
|
|
151
141
|
/** Tool bindings. Read-only in the Appliance deployment model. */
|
|
@@ -44,7 +44,7 @@ model BaseTypeInfo {
|
|
|
44
44
|
*
|
|
45
45
|
* ```typespec
|
|
46
46
|
* // Agent definition and properties using the Appliance deployment model
|
|
47
|
-
* model ContosoApplianceDefinition is AgentDefinitionAppliance<true
|
|
47
|
+
* model ContosoApplianceDefinition is AgentDefinitionAppliance<true>;
|
|
48
48
|
* model ContosoApplianceProperties is AgentPropertiesAppliance<ContosoApplianceDefinition> {
|
|
49
49
|
* ...DefaultProvisioningStateProperty;
|
|
50
50
|
* }
|
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.15",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"pluralize": "^8.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@azure-tools/typespec-azure-core": "^0.70.0 || >= 0.71.0-dev.
|
|
50
|
+
"@azure-tools/typespec-azure-core": "^0.70.0 || >= 0.71.0-dev.7",
|
|
51
51
|
"@typespec/compiler": "^1.14.0",
|
|
52
|
-
"@typespec/openapi": "^1.14.0",
|
|
53
|
-
"@typespec/versioning": "^0.84.0",
|
|
54
52
|
"@typespec/http": "^1.14.0",
|
|
55
|
-
"@typespec/rest": "^0.84.0"
|
|
53
|
+
"@typespec/rest": "^0.84.0",
|
|
54
|
+
"@typespec/openapi": "^1.14.0",
|
|
55
|
+
"@typespec/versioning": "^0.84.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@azure-tools/typespec-azure-core": "^0.70.0 || >= 0.71.0-dev.
|
|
58
|
+
"@azure-tools/typespec-azure-core": "^0.70.0 || >= 0.71.0-dev.7",
|
|
59
59
|
"@types/node": "^26.0.0",
|
|
60
60
|
"@types/pluralize": "^0.0.33",
|
|
61
61
|
"@vitest/coverage-v8": "^4.1.3",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"rimraf": "^6.1.3",
|
|
64
64
|
"typescript": "~6.0.2",
|
|
65
65
|
"vitest": "^4.1.3",
|
|
66
|
-
"@typespec/compiler": "^1.14.0",
|
|
67
66
|
"@typespec/http": "^1.14.0",
|
|
67
|
+
"@typespec/rest": "^0.84.0",
|
|
68
68
|
"@typespec/library-linter": "^0.84.0",
|
|
69
69
|
"@typespec/tspd": "^0.76.0",
|
|
70
|
-
"@typespec/rest": "^0.84.0",
|
|
71
70
|
"@typespec/versioning": "^0.84.0",
|
|
71
|
+
"@typespec/compiler": "^1.14.0",
|
|
72
72
|
"@typespec/openapi": "^1.14.0"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|