@alicloud/agentloop20260520 2.4.4 → 2.4.5

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.
Files changed (58) hide show
  1. package/dist/client.d.ts +14 -14
  2. package/dist/client.js +17 -14
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAgentSpaceRequest.d.ts +11 -3
  5. package/dist/models/CreateAgentSpaceRequest.js +2 -0
  6. package/dist/models/CreateAgentSpaceRequest.js.map +1 -1
  7. package/dist/models/CreateContextStoreRequest.d.ts +69 -61
  8. package/dist/models/CreateContextStoreRequest.js +2 -0
  9. package/dist/models/CreateContextStoreRequest.js.map +1 -1
  10. package/dist/models/CreateContextStoreResponseBody.d.ts +2 -2
  11. package/dist/models/CreateExperimentPlanRequest.d.ts +9 -9
  12. package/dist/models/CreateExperimentPlanResponseBody.d.ts +3 -3
  13. package/dist/models/CreatePipelineRequest.d.ts +36 -36
  14. package/dist/models/CreatePipelineResponseBody.d.ts +1 -1
  15. package/dist/models/GetContextStoreResponseBody.d.ts +84 -78
  16. package/dist/models/GetContextStoreResponseBody.js +2 -0
  17. package/dist/models/GetContextStoreResponseBody.js.map +1 -1
  18. package/dist/models/GetExperimentPlanResponseBody.d.ts +10 -10
  19. package/dist/models/GetExperimentRunResponseBody.d.ts +1 -1
  20. package/dist/models/ListAgentSpacesRequest.d.ts +2 -2
  21. package/dist/models/ListAgentSpacesResponseBody.d.ts +15 -8
  22. package/dist/models/ListAgentSpacesResponseBody.js.map +1 -1
  23. package/dist/models/ListExperimentRunsRequest.d.ts +6 -6
  24. package/dist/models/ListExperimentRunsResponseBody.d.ts +2 -2
  25. package/dist/models/ModelParameters.d.ts +142 -6
  26. package/dist/models/ModelParameters.js +69 -1
  27. package/dist/models/ModelParameters.js.map +1 -1
  28. package/dist/models/UpdateContextStoreRequest.d.ts +58 -59
  29. package/dist/models/UpdateContextStoreRequest.js +2 -0
  30. package/dist/models/UpdateContextStoreRequest.js.map +1 -1
  31. package/dist/models/UpdateContextStoreResponseBody.d.ts +2 -2
  32. package/dist/models/UpdateExperimentPlanRequest.d.ts +5 -5
  33. package/dist/models/UpdateExperimentPlanResponseBody.d.ts +1 -1
  34. package/dist/models/model.d.ts +2 -0
  35. package/dist/models/model.js +15 -11
  36. package/dist/models/model.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/client.ts +18 -14
  39. package/src/models/CreateAgentSpaceRequest.ts +13 -3
  40. package/src/models/CreateContextStoreRequest.ts +71 -61
  41. package/src/models/CreateContextStoreResponseBody.ts +2 -2
  42. package/src/models/CreateExperimentPlanRequest.ts +9 -9
  43. package/src/models/CreateExperimentPlanResponseBody.ts +3 -3
  44. package/src/models/CreatePipelineRequest.ts +36 -36
  45. package/src/models/CreatePipelineResponseBody.ts +1 -1
  46. package/src/models/GetContextStoreResponseBody.ts +86 -78
  47. package/src/models/GetExperimentPlanResponseBody.ts +10 -10
  48. package/src/models/GetExperimentRunResponseBody.ts +1 -1
  49. package/src/models/ListAgentSpacesRequest.ts +2 -2
  50. package/src/models/ListAgentSpacesResponseBody.ts +15 -8
  51. package/src/models/ListExperimentRunsRequest.ts +6 -6
  52. package/src/models/ListExperimentRunsResponseBody.ts +2 -2
  53. package/src/models/ModelParameters.ts +192 -6
  54. package/src/models/UpdateContextStoreRequest.ts +60 -59
  55. package/src/models/UpdateContextStoreResponseBody.ts +2 -2
  56. package/src/models/UpdateExperimentPlanRequest.ts +5 -5
  57. package/src/models/UpdateExperimentPlanResponseBody.ts +1 -1
  58. package/src/models/model.ts +2 -0
@@ -7,7 +7,7 @@ import { ExperimentConfig } from "./ExperimentConfig";
7
7
  export class GetExperimentPlanResponseBody extends $dara.Model {
8
8
  /**
9
9
  * @remarks
10
- * The creation time. The value is a millisecond-level UNIX timestamp.
10
+ * The creation time. The value is a UNIX timestamp in milliseconds.
11
11
  *
12
12
  * @example
13
13
  * 1782816000000
@@ -15,7 +15,7 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
15
15
  createdAt?: number;
16
16
  /**
17
17
  * @remarks
18
- * The associated dataset ID.
18
+ * The ID of the associated dataset.
19
19
  *
20
20
  * @example
21
21
  * arms_customer_agent_level1
@@ -26,7 +26,7 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
26
26
  * The description.
27
27
  *
28
28
  * @example
29
- * Compare checkout Agent baseline with optimized version
29
+ * Compare the checkout agent baseline with the optimized version
30
30
  */
31
31
  description?: string;
32
32
  /**
@@ -39,7 +39,7 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
39
39
  evaluators?: Evaluator[];
40
40
  /**
41
41
  * @remarks
42
- * The experiment type.
42
+ * The type of the experiment.
43
43
  *
44
44
  * @example
45
45
  * online
@@ -58,17 +58,17 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
58
58
  * Optional.
59
59
  *
60
60
  * @example
61
- * {"question": "How do I request a refund?"}
61
+ * {"question": "How do I get a refund?"}
62
62
  */
63
63
  input?: { [key: string]: any };
64
64
  /**
65
65
  * @remarks
66
- * The name of the associated data processing pipeline. This value is empty if no pipeline is associated.
66
+ * The name of the associated data processing pipeline. This field is empty if no pipeline is associated.
67
67
  */
68
68
  pipelineName?: string;
69
69
  /**
70
70
  * @remarks
71
- * The experiment plan ID.
71
+ * The ID of the experiment plan.
72
72
  *
73
73
  * @example
74
74
  * exp-plan-0242d983f5d340fd8479cf2c19eb279e
@@ -76,7 +76,7 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
76
76
  planId?: string;
77
77
  /**
78
78
  * @remarks
79
- * The experiment plan name.
79
+ * The name of the experiment plan.
80
80
  *
81
81
  * @example
82
82
  * arms_agent_experiment
@@ -108,7 +108,7 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
108
108
  selectedItemIds?: string[];
109
109
  /**
110
110
  * @remarks
111
- * The plan status.
111
+ * The status of the plan.
112
112
  *
113
113
  * @example
114
114
  * stopped
@@ -116,7 +116,7 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
116
116
  status?: string;
117
117
  /**
118
118
  * @remarks
119
- * The update time. The value is a millisecond-level UNIX timestamp.
119
+ * The update time. The value is a UNIX timestamp in milliseconds.
120
120
  *
121
121
  * @example
122
122
  * 1782816600000
@@ -6,7 +6,7 @@ import { ExperimentRecord } from "./ExperimentRecord";
6
6
  export class GetExperimentRunResponseBody extends $dara.Model {
7
7
  /**
8
8
  * @remarks
9
- * The experiment run record details. Fields with null values are not returned.
9
+ * The details of the experiment run. Fields with null values are not returned.
10
10
  *
11
11
  * @example
12
12
  * {"recordId": "exp-run-f6d419b0ed3d43a7b585948a55efc07b", "experimentPlanId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e", "recordName": "arms_agent_experiment 2026/07/22 20:02:55", "planName": "arms_agent_experiment", "status": "evaluating", "totalTasks": 40, "completedTasks": 40, "failedTasks": 0, "progress": 100.0, "executedAt": 1784721775379, "completedAt": 1784721811392, "dataSourceType": "dataset-full", "datasetId": "arms_customer_agent_level1", "modelNames": ["qwen3.7-plus", "qwen3.7-max"], "evaluationTaskId": "eval-task-6bec93bfa03740dd86ce2bf1496e65fb"}
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ListAgentSpacesRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The AgentSpace name.
8
+ * The name of the AgentSpace.
9
9
  *
10
10
  * @example
11
11
  * test-agent-space
@@ -13,7 +13,7 @@ export class ListAgentSpacesRequest extends $dara.Model {
13
13
  agentSpace?: string;
14
14
  /**
15
15
  * @remarks
16
- * The maximum number of results to return.
16
+ * The maximum number of results.
17
17
  *
18
18
  * @example
19
19
  * 50
@@ -3,10 +3,17 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListAgentSpacesResponseBodyAgentSpacesMseNamespace extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The attach method of the MSE namespace. AutoCreated indicates automatic creation by AgentLoop. UserSelected indicates that an existing namespace is selected and attached when the AgentSpace is created.
9
+ *
10
+ * @example
11
+ * AutoCreated
12
+ */
6
13
  bindType?: string;
7
14
  /**
8
15
  * @remarks
9
- * The MSE namespace ID.
16
+ * The ID of the MSE namespace.
10
17
  *
11
18
  * @example
12
19
  * phoenixcloud-raw-logs
@@ -14,7 +21,7 @@ export class ListAgentSpacesResponseBodyAgentSpacesMseNamespace extends $dara.Mo
14
21
  namespaceId?: string;
15
22
  /**
16
23
  * @remarks
17
- * The MSE namespace name.
24
+ * The name of the MSE namespace.
18
25
  *
19
26
  * @example
20
27
  * terraform-alicloud-modules
@@ -48,7 +55,7 @@ export class ListAgentSpacesResponseBodyAgentSpacesMseNamespace extends $dara.Mo
48
55
  export class ListAgentSpacesResponseBodyAgentSpaces extends $dara.Model {
49
56
  /**
50
57
  * @remarks
51
- * The AgentSpace name.
58
+ * The name of the AgentSpace.
52
59
  *
53
60
  * @example
54
61
  * test-agent-space
@@ -95,7 +102,7 @@ export class ListAgentSpacesResponseBodyAgentSpaces extends $dara.Model {
95
102
  regionId?: string;
96
103
  /**
97
104
  * @remarks
98
- * The Simple Log Service project name.
105
+ * The name of the Simple Log Service project.
99
106
  *
100
107
  * @example
101
108
  * default-cms-1152309027070167-cn-beijing
@@ -152,12 +159,12 @@ export class ListAgentSpacesResponseBodyAgentSpaces extends $dara.Model {
152
159
  export class ListAgentSpacesResponseBody extends $dara.Model {
153
160
  /**
154
161
  * @remarks
155
- * The AgentSpaces information.
162
+ * The information about the AgentSpaces.
156
163
  */
157
164
  agentSpaces?: ListAgentSpacesResponseBodyAgentSpaces[];
158
165
  /**
159
166
  * @remarks
160
- * The maximum number of results returned.
167
+ * The maximum number of returned results.
161
168
  *
162
169
  * @example
163
170
  * 100
@@ -165,7 +172,7 @@ export class ListAgentSpacesResponseBody extends $dara.Model {
165
172
  maxResults?: number;
166
173
  /**
167
174
  * @remarks
168
- * The pagination token. This parameter is empty if no more pages are available.
175
+ * The pagination token. This parameter is empty if no next page is available.
169
176
  *
170
177
  * @example
171
178
  * b5754ef15c784abc8696d82790d2985c
@@ -181,7 +188,7 @@ export class ListAgentSpacesResponseBody extends $dara.Model {
181
188
  requestId?: string;
182
189
  /**
183
190
  * @remarks
184
- * The total number of entries.
191
+ * The total count.
185
192
  *
186
193
  * @example
187
194
  * 13
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ListExperimentRunsRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Filters results by exact dataset ID.
8
+ * Filters the results by exact dataset ID.
9
9
  *
10
10
  * @example
11
11
  * arms_customer_agent_level1
@@ -13,7 +13,7 @@ export class ListExperimentRunsRequest extends $dara.Model {
13
13
  datasetId?: string;
14
14
  /**
15
15
  * @remarks
16
- * Filters results by fuzzy match on the experiment configuration name.
16
+ * Filters the results by using a fuzzy match on the name in the experiment configuration.
17
17
  *
18
18
  * @example
19
19
  * experimentA
@@ -21,7 +21,7 @@ export class ListExperimentRunsRequest extends $dara.Model {
21
21
  experimentName?: string;
22
22
  /**
23
23
  * @remarks
24
- * Optional. Use `page` and `pageSize` for pagination instead.
24
+ * Optional. For pagination, use page and pageSize.
25
25
  *
26
26
  * @example
27
27
  * 20
@@ -29,7 +29,7 @@ export class ListExperimentRunsRequest extends $dara.Model {
29
29
  maxResults?: number;
30
30
  /**
31
31
  * @remarks
32
- * Optional. Use `page` and `pageSize` for pagination instead.
32
+ * Optional. For pagination, use page and pageSize.
33
33
  *
34
34
  * @example
35
35
  * eyJwYWdlIjoxfQ==
@@ -53,7 +53,7 @@ export class ListExperimentRunsRequest extends $dara.Model {
53
53
  pageSize?: number;
54
54
  /**
55
55
  * @remarks
56
- * Filters results by fuzzy match on the experiment plan name.
56
+ * Filters the results by using a fuzzy match on the experiment plan name.
57
57
  *
58
58
  * @example
59
59
  * arms_agent_experiment
@@ -61,7 +61,7 @@ export class ListExperimentRunsRequest extends $dara.Model {
61
61
  planName?: string;
62
62
  /**
63
63
  * @remarks
64
- * Filters results by status.
64
+ * Filters the results by status.
65
65
  *
66
66
  * @example
67
67
  * evaluating
@@ -6,7 +6,7 @@ import { ExperimentRecord } from "./ExperimentRecord";
6
6
  export class ListExperimentRunsResponseBody extends $dara.Model {
7
7
  /**
8
8
  * @remarks
9
- * The maximum number of entries returned.
9
+ * The maximum number of returned entries.
10
10
  *
11
11
  * @example
12
12
  * 20
@@ -38,7 +38,7 @@ export class ListExperimentRunsResponseBody extends $dara.Model {
38
38
  pageSize?: number;
39
39
  /**
40
40
  * @remarks
41
- * The list of experiment run records.
41
+ * The list of experiment runs.
42
42
  *
43
43
  * @example
44
44
  * [{"recordId": "exp-run-f6d419b0ed3d43a7b585948a55efc07b", "experimentPlanId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e", "recordName": "arms_agent_experiment 2026/07/22 20:02:55", "planName": "arms_agent_experiment", "status": "evaluating", "progress": 100.0, "totalTasks": 40, "completedTasks": 40, "failedTasks": 0, "dataSourceType": "dataset-full", "datasetId": "arms_customer_agent_level1", "modelNames": ["qwen3.7-plus", "qwen3.7-max"], "evaluationTaskId": "eval-task-6bec93bfa03740dd86ce2bf1496e65fb", "executedAt": 1784721775379, "completedAt": 1784721811392}, {"recordId": "a5397261-6e6d-4e45-bf52-feb8686f7524", "experimentPlanId": "exp-plan-e95bff54685a4ae29ff3a834c1008a71", "recordName": "rca_benchmark_eval_experiment 2026/07/22 19:23:59", "planName": "rca_benchmark_eval_experiment", "status": "completed", "progress": 100.0, "totalTasks": 20, "completedTasks": 20, "failedTasks": 0, "dataSourceType": "dataset-full", "datasetId": "rca_benckmark_eval", "modelNames": [], "evaluationTaskId": "eval-task-b1395b3bdf3e4dc994d7dcde7a66da45", "executedAt": 1784719439255, "completedAt": 1784719989371}]
@@ -2,15 +2,140 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class ModelParametersResponseFormatJsonSchema extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The schema name.
9
+ *
10
+ * @example
11
+ * answer
12
+ */
13
+ name?: string;
14
+ /**
15
+ * @remarks
16
+ * The JSON Schema definition, which is a serialized string of a JSON object.
17
+ *
18
+ * @example
19
+ * {"type":"object","properties":{"answer":{"type":"string"}},"required":["answer"]}
20
+ */
21
+ schema?: string;
22
+ /**
23
+ * @remarks
24
+ * Specifies whether to strictly adhere to the schema structure. Set this to true.
25
+ *
26
+ * @example
27
+ * true
28
+ */
29
+ strict?: boolean;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ name: 'name',
33
+ schema: 'schema',
34
+ strict: 'strict',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ name: 'string',
41
+ schema: 'string',
42
+ strict: 'boolean',
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
55
+ export class ModelParametersResponseFormat extends $dara.Model {
56
+ /**
57
+ * @remarks
58
+ * The JSON Schema constraint, which is required when the type is json_schema.
59
+ *
60
+ * @example
61
+ * {"name":"answer","strict":true,"schema":"{\\"type\\":\\"object\\",\\"properties\\":{\\"answer\\":{\\"type\\":\\"string\\"}},\\"required\\":[\\"answer\\"]}"}
62
+ */
63
+ jsonSchema?: ModelParametersResponseFormatJsonSchema;
64
+ /**
65
+ * @remarks
66
+ * The format type. Valid values: text, json_object, and json_schema. When using json_object, the prompt must explicitly request JSON output.
67
+ *
68
+ * @example
69
+ * json_object
70
+ */
71
+ type?: string;
72
+ static names(): { [key: string]: string } {
73
+ return {
74
+ jsonSchema: 'jsonSchema',
75
+ type: 'type',
76
+ };
77
+ }
78
+
79
+ static types(): { [key: string]: any } {
80
+ return {
81
+ jsonSchema: ModelParametersResponseFormatJsonSchema,
82
+ type: 'string',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ if(this.jsonSchema && typeof (this.jsonSchema as any).validate === 'function') {
88
+ (this.jsonSchema as any).validate();
89
+ }
90
+ super.validate();
91
+ }
92
+
93
+ constructor(map?: { [key: string]: any }) {
94
+ super(map);
95
+ }
96
+ }
97
+
5
98
  export class ModelParameters extends $dara.Model {
6
99
  /**
7
100
  * @remarks
8
- * The frequency penalty. Positive values reduce repetition. Valid values: -2.0 to 2.0.
101
+ * Specifies whether to enable explicit caching for system messages.
102
+ *
103
+ * @example
104
+ * true
105
+ */
106
+ enableCacheControl?: boolean;
107
+ /**
108
+ * @remarks
109
+ * Specifies whether to enable thinking mode. This takes effect only for hybrid thinking models and defaults to false if not specified.
110
+ *
111
+ * @example
112
+ * true
113
+ */
114
+ enableThinking?: boolean;
115
+ /**
116
+ * @remarks
117
+ * The extended parameters, which are a serialized string of a JSON object. These are merged into the top level of the model request body to pass through other Model Studio parameters.
118
+ *
119
+ * @example
120
+ * {"enable_search":false}
121
+ */
122
+ extraBody?: string;
123
+ /**
124
+ * @remarks
125
+ * The frequency penalty where positive values reduce repetition, with a range of -2.0 to 2.0.
9
126
  *
10
127
  * @example
11
128
  * 0.2
12
129
  */
13
130
  frequencyPenalty?: number;
131
+ /**
132
+ * @remarks
133
+ * The maximum number of output tokens, including the chain-of-thought and the response. This is recommended for thinking models.
134
+ *
135
+ * @example
136
+ * 4096
137
+ */
138
+ maxCompletionTokens?: number;
14
139
  /**
15
140
  * @remarks
16
141
  * The maximum number of output tokens.
@@ -21,7 +146,7 @@ export class ModelParameters extends $dara.Model {
21
146
  maxTokens?: number;
22
147
  /**
23
148
  * @remarks
24
- * The presence penalty. Positive values encourage new topics. Valid values: -2.0 to 2.0.
149
+ * The presence penalty where positive values encourage new topics, with a range of -2.0 to 2.0.
25
150
  *
26
151
  * @example
27
152
  * 0.1
@@ -29,7 +154,39 @@ export class ModelParameters extends $dara.Model {
29
154
  presencePenalty?: number;
30
155
  /**
31
156
  * @remarks
32
- * The stop sequences. Generation stops immediately when any of these sequences is encountered.
157
+ * The reasoning effort level. This takes effect only when thinking mode is enabled. For the Qwen3.8 series, valid values are low, medium, and xhigh. This cannot be set simultaneously with thinkingBudget.
158
+ *
159
+ * @example
160
+ * low
161
+ */
162
+ reasoningEffort?: string;
163
+ /**
164
+ * @remarks
165
+ * The repetition penalty that controls the repetition of consecutive sequences. The value must be greater than 0. A value of 1.0 indicates no penalty, and a larger value results in less repetition.
166
+ *
167
+ * @example
168
+ * 1.05
169
+ */
170
+ repetitionPenalty?: number;
171
+ /**
172
+ * @remarks
173
+ * The response content format, which defaults to text if not specified.
174
+ *
175
+ * @example
176
+ * {"type":"json_schema","jsonSchema":{"name":"answer","strict":true,"schema":"{\\"type\\":\\"object\\",\\"properties\\":{\\"answer\\":{\\"type\\":\\"string\\"}},\\"required\\":[\\"answer\\"]}"}}
177
+ */
178
+ responseFormat?: ModelParametersResponseFormat;
179
+ /**
180
+ * @remarks
181
+ * The random seed, with a range of 0 to 2147483647, which attempts to return the same result for the same input and parameters.
182
+ *
183
+ * @example
184
+ * 1234
185
+ */
186
+ seed?: number;
187
+ /**
188
+ * @remarks
189
+ * The stop sequences that immediately halt generation when encountered.
33
190
  *
34
191
  * @example
35
192
  * ["END"]
@@ -37,7 +194,7 @@ export class ModelParameters extends $dara.Model {
37
194
  stopSequences?: string[];
38
195
  /**
39
196
  * @remarks
40
- * The temperature parameter that controls the randomness of the output. Valid values: 0 to 2.
197
+ * The temperature parameter that controls the randomness of the output, with a range of 0 to 2.
41
198
  *
42
199
  * @example
43
200
  * 0.7
@@ -45,7 +202,15 @@ export class ModelParameters extends $dara.Model {
45
202
  temperature?: number;
46
203
  /**
47
204
  * @remarks
48
- * The top-k sampling parameter. Valid values: 1 to 100.
205
+ * The maximum number of tokens for the thinking process. This takes effect only when thinking mode is enabled and cannot be set simultaneously with reasoningEffort.
206
+ *
207
+ * @example
208
+ * 2048
209
+ */
210
+ thinkingBudget?: number;
211
+ /**
212
+ * @remarks
213
+ * The Top K sampling parameter, with a range of 1 to 100.
49
214
  *
50
215
  * @example
51
216
  * 50
@@ -53,7 +218,7 @@ export class ModelParameters extends $dara.Model {
53
218
  topK?: number;
54
219
  /**
55
220
  * @remarks
56
- * The top-p sampling parameter. Valid values: 0 to 1.
221
+ * The Top P sampling parameter, with a range of 0 to 1.
57
222
  *
58
223
  * @example
59
224
  * 0.9
@@ -61,11 +226,20 @@ export class ModelParameters extends $dara.Model {
61
226
  topP?: number;
62
227
  static names(): { [key: string]: string } {
63
228
  return {
229
+ enableCacheControl: 'enableCacheControl',
230
+ enableThinking: 'enableThinking',
231
+ extraBody: 'extraBody',
64
232
  frequencyPenalty: 'frequencyPenalty',
233
+ maxCompletionTokens: 'maxCompletionTokens',
65
234
  maxTokens: 'maxTokens',
66
235
  presencePenalty: 'presencePenalty',
236
+ reasoningEffort: 'reasoningEffort',
237
+ repetitionPenalty: 'repetitionPenalty',
238
+ responseFormat: 'responseFormat',
239
+ seed: 'seed',
67
240
  stopSequences: 'stopSequences',
68
241
  temperature: 'temperature',
242
+ thinkingBudget: 'thinkingBudget',
69
243
  topK: 'topK',
70
244
  topP: 'topP',
71
245
  };
@@ -73,17 +247,29 @@ export class ModelParameters extends $dara.Model {
73
247
 
74
248
  static types(): { [key: string]: any } {
75
249
  return {
250
+ enableCacheControl: 'boolean',
251
+ enableThinking: 'boolean',
252
+ extraBody: 'string',
76
253
  frequencyPenalty: 'number',
254
+ maxCompletionTokens: 'number',
77
255
  maxTokens: 'number',
78
256
  presencePenalty: 'number',
257
+ reasoningEffort: 'string',
258
+ repetitionPenalty: 'number',
259
+ responseFormat: ModelParametersResponseFormat,
260
+ seed: 'number',
79
261
  stopSequences: { 'type': 'array', 'itemType': 'string' },
80
262
  temperature: 'number',
263
+ thinkingBudget: 'number',
81
264
  topK: 'number',
82
265
  topP: 'number',
83
266
  };
84
267
  }
85
268
 
86
269
  validate() {
270
+ if(this.responseFormat && typeof (this.responseFormat as any).validate === 'function') {
271
+ (this.responseFormat as any).validate();
272
+ }
87
273
  if(Array.isArray(this.stopSequences)) {
88
274
  $dara.Model.validateArray(this.stopSequences);
89
275
  }