Skip to content

Commit bd57242

Browse files
authored
Upgrade the dependency package version to reproduce the Nightly error (#3500)
* upgrade dependencies to dev * update * update * regen code
1 parent 0a7b2e7 commit bd57242

File tree

5 files changed

+60
-28
lines changed

5 files changed

+60
-28
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/typespec-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@azure-tools/typespec-autorest": "^0.60.0",
99
"@typespec/openapi3": "^1.4.0",
1010
"@azure-tools/typespec-azure-core": "^0.60.0",
11-
"@azure-tools/typespec-client-generator-core": "^0.60.0",
11+
"@azure-tools/typespec-client-generator-core": "0.61.0-dev.3",
1212
"@azure-tools/typespec-azure-resource-manager": "^0.60.0",
1313
"@azure-tools/typespec-azure-rulesets": "^0.60.0",
1414
"@typespec/compiler": "^1.4.0",

packages/typespec-test/test/ai/generated/typespec-ts/src/models/agents/models.ts

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,16 @@ export function toolDefinitionUnionArrayDeserializer(
12321232
});
12331233
}
12341234

1235-
/** Alias for AgentsApiResponseFormatOption */
1235+
/**
1236+
* Specifies the format that the model must output. Compatible with GPT-4 Turbo and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
1237+
*
1238+
* Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.
1239+
*
1240+
* **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message.
1241+
* Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit,
1242+
* resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off
1243+
* if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.
1244+
*/
12361245
export type AgentsApiResponseFormatOption =
12371246
| string
12381247
| AgentsApiResponseFormatMode
@@ -1469,7 +1478,7 @@ export function messageAttachmentToolDefinitionArrayDeserializer(
14691478
});
14701479
}
14711480

1472-
/** Alias for MessageAttachmentToolDefinition */
1481+
/** The possible tools to which files will be added by this message */
14731482
export type MessageAttachmentToolDefinition =
14741483
| CodeInterpreterToolDefinition
14751484
| FileSearchToolDefinition;
@@ -1990,7 +1999,13 @@ export function functionNameDeserializer(item: any): FunctionName {
19901999
};
19912000
}
19922001

1993-
/** Alias for AgentsApiToolChoiceOption */
2002+
/**
2003+
* Controls which (if any) tool is called by the model.
2004+
* - `none` means the model will not call any tools and instead generates a message.
2005+
* - `auto` is the default value and means the model can pick between generating a message or calling a tool.
2006+
* Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}`
2007+
* forces the model to call that tool.
2008+
*/
19942009
export type AgentsApiToolChoiceOption =
19952010
| string
19962011
| AgentsApiToolChoiceOptionMode
@@ -4510,7 +4525,24 @@ export function runStepDeltaCodeInterpreterImageOutputObjectDeserializer(
45104525
};
45114526
}
45124527

4513-
/** Alias for AgentStreamEvent */
4528+
/**
4529+
* Each event in a server-sent events stream has an `event` and `data` property:
4530+
*
4531+
* ```
4532+
* event: thread.created
4533+
* data: {"id": "thread_123", "object": "thread", ...}
4534+
* ```
4535+
*
4536+
* We emit events whenever a new object is created, transitions to a new state, or is being
4537+
* streamed in parts (deltas). For example, we emit `thread.run.created` when a new run
4538+
* is created, `thread.run.completed` when a run completes, and so on. When an Agent chooses
4539+
* to create a message during a run, we emit a `thread.message.created event`, a
4540+
* `thread.message.in_progress` event, many `thread.message.delta` events, and finally a
4541+
* `thread.message.completed` event.
4542+
*
4543+
* We may add additional events over time, so we recommend handling unknown events gracefully
4544+
* in your code.
4545+
*/
45144546
export type AgentStreamEvent =
45154547
| string
45164548
| ThreadStreamEvent

packages/typespec-ts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"@azure-tools/typespec-autorest": "^0.60.0",
7474
"@azure-tools/typespec-azure-core": "^0.60.0",
7575
"@azure-tools/typespec-azure-resource-manager": "^0.60.0",
76-
"@azure-tools/typespec-client-generator-core": "^0.60.0",
76+
"@azure-tools/typespec-client-generator-core": "0.61.0-dev.3",
7777
"@azure/abort-controller": "^2.1.2",
7878
"@azure/core-auth": "^1.6.0",
7979
"@azure/core-lro": "^3.1.0",
@@ -116,7 +116,7 @@
116116
},
117117
"peerDependencies": {
118118
"@azure-tools/typespec-azure-core": "^0.60.0",
119-
"@azure-tools/typespec-client-generator-core": "^0.60.0",
119+
"@azure-tools/typespec-client-generator-core": "0.61.0-dev.3",
120120
"@typespec/compiler": "^1.4.0",
121121
"@typespec/http": "^1.4.0",
122122
"@typespec/rest": "^0.74.0",

packages/typespec-ts/test/modularUnit/scenarios/models/nestedEnum/notFlatten/experimentalExtensibleEnumsFalse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function _fooRequestBodySerializer(item: _FooRequestBody): any {
7777
return { status: provisioningStateSerializer(item["status"]) };
7878
}
7979

80-
/** Alias for ProvisioningState */
80+
/** The resource provisioning state. */
8181
export type ProvisioningState =
8282
| ResourceProvisioningState
8383
| "Provisioning"

0 commit comments

Comments
 (0)