Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

chore: fix api spec (#5422)

Shahmir Varqhaf2ca0c610169
diff --git a/openapi/api.yaml b/openapi/api.yaml
index 68ba347d85..ac4cd5ef81 100644
--- a/openapi/api.yaml
+++ b/openapi/api.yaml
@@ -258,54 +258,29 @@ components:
type: object
- properties:
toolInvocation:
- oneOf:
- - properties:
- args:
- additionalProperties: {}
- type: object
- state:
- enum:
- - call
- - partial-call
- type: string
- step:
- type: integer
- toolCallId:
- type: string
- toolName:
- type: string
- required:
- - state
- - toolCallId
- - toolName
- - step
- - args
- type: object
- - properties:
- args:
- additionalProperties: {}
- type: object
- result: {}
- state:
- enum:
- - call
- - partial-call
- - result
- type: string
- step:
- type: integer
- toolCallId:
- type: string
- toolName:
- type: string
- required:
- - state
- - result
- - toolCallId
- - toolName
- - step
- - args
- type: object
+ properties:
+ args:
+ additionalProperties: {}
+ type: object
+ result: {}
+ state:
+ enum:
+ - result
+ type: string
+ step:
+ type: integer
+ toolCallId:
+ type: string
+ toolName:
+ type: string
+ required:
+ - state
+ - result
+ - toolCallId
+ - toolName
+ - step
+ - args
+ type: object
type:
enum:
- tool-invocation
diff --git a/openapi/src/api.ts b/openapi/src/api.ts
index 10750c5a21..f44f3b68c2 100644
--- a/openapi/src/api.ts
+++ b/openapi/src/api.ts
@@ -2648,28 +2648,17 @@ export interface components {
type: "reasoning";
}
| {
- toolInvocation:
- | {
- args: {
- [key: string]: unknown;
- };
- /** @enum {string} */
- state: "call" | "partial-call";
- step: number;
- toolCallId: string;
- toolName: string;
- }
- | {
- args: {
- [key: string]: unknown;
- };
- result: unknown;
- /** @enum {string} */
- state: "call" | "partial-call" | "result";
- step: number;
- toolCallId: string;
- toolName: string;
- };
+ toolInvocation: {
+ args: {
+ [key: string]: unknown;
+ };
+ result: unknown;
+ /** @enum {string} */
+ state: "result";
+ step: number;
+ toolCallId: string;
+ toolName: string;
+ };
/** @enum {string} */
type: "tool-invocation";
}