Skip to content

Commit 3f1e096

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#959)
1 parent 00f21ed commit 3f1e096

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1348
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d492ae5acff80b29c47150117fb6934a23891c45978e644382ebaa5bbee60222.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60eaec2f4029582531bbb45c66bb499e91203845eeeb3d507ae7ed5675a6bbe6.yml

src/resources/workers/ai/ai.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type AIRunResponse =
3939
| AIRunResponse.SpeechRecognition
4040
| Array<AIRunResponse.ImageClassification>
4141
| Array<AIRunResponse.ObjectDetection>
42-
| AIRunResponse.Response
42+
| AIRunResponse.UnionMember7
4343
| Uploadable
4444
| AIRunResponse.Translation
4545
| AIRunResponse.Summarization
@@ -104,8 +104,18 @@ export namespace AIRunResponse {
104104
}
105105
}
106106

107-
export interface Response {
107+
export interface UnionMember7 {
108108
response?: string;
109+
110+
tool_calls?: Array<UnionMember7.ToolCall>;
111+
}
112+
113+
export namespace UnionMember7 {
114+
export interface ToolCall {
115+
arguments?: unknown;
116+
117+
name?: string;
118+
}
109119
}
110120

111121
export interface Translation {

0 commit comments

Comments
 (0)