summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sdk')
-rw-r--r--packages/sdk/js/src/v2/gen/sdk.gen.ts5
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts30
2 files changed, 35 insertions, 0 deletions
diff --git a/packages/sdk/js/src/v2/gen/sdk.gen.ts b/packages/sdk/js/src/v2/gen/sdk.gen.ts
index b757b7535..af79c44a1 100644
--- a/packages/sdk/js/src/v2/gen/sdk.gen.ts
+++ b/packages/sdk/js/src/v2/gen/sdk.gen.ts
@@ -57,6 +57,7 @@ import type {
McpLocalConfig,
McpRemoteConfig,
McpStatusResponses,
+ OutputFormat,
Part as Part2,
PartDeleteErrors,
PartDeleteResponses,
@@ -1473,6 +1474,7 @@ export class Session extends HeyApiClient {
tools?: {
[key: string]: boolean
}
+ format?: OutputFormat
system?: string
variant?: string
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
@@ -1491,6 +1493,7 @@ export class Session extends HeyApiClient {
{ in: "body", key: "agent" },
{ in: "body", key: "noReply" },
{ in: "body", key: "tools" },
+ { in: "body", key: "format" },
{ in: "body", key: "system" },
{ in: "body", key: "variant" },
{ in: "body", key: "parts" },
@@ -1561,6 +1564,7 @@ export class Session extends HeyApiClient {
tools?: {
[key: string]: boolean
}
+ format?: OutputFormat
system?: string
variant?: string
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
@@ -1579,6 +1583,7 @@ export class Session extends HeyApiClient {
{ in: "body", key: "agent" },
{ in: "body", key: "noReply" },
{ in: "body", key: "tools" },
+ { in: "body", key: "format" },
{ in: "body", key: "system" },
{ in: "body", key: "variant" },
{ in: "body", key: "parts" },
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index 985d550a3..26a3bd20e 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -90,6 +90,22 @@ export type EventFileEdited = {
}
}
+export type OutputFormatText = {
+ type: "text"
+}
+
+export type JsonSchema = {
+ [key: string]: unknown
+}
+
+export type OutputFormatJsonSchema = {
+ type: "json_schema"
+ schema: JsonSchema
+ retryCount?: number
+}
+
+export type OutputFormat = OutputFormatText | OutputFormatJsonSchema
+
export type FileDiff = {
file: string
before: string
@@ -106,6 +122,7 @@ export type UserMessage = {
time: {
created: number
}
+ format?: OutputFormat
summary?: {
title?: string
body?: string
@@ -152,6 +169,14 @@ export type MessageAbortedError = {
}
}
+export type StructuredOutputError = {
+ name: "StructuredOutputError"
+ data: {
+ message: string
+ retries: number
+ }
+}
+
export type ContextOverflowError = {
name: "ContextOverflowError"
data: {
@@ -189,6 +214,7 @@ export type AssistantMessage = {
| UnknownError
| MessageOutputLengthError
| MessageAbortedError
+ | StructuredOutputError
| ContextOverflowError
| ApiError
parentID: string
@@ -212,6 +238,7 @@ export type AssistantMessage = {
write: number
}
}
+ structured?: unknown
variant?: string
finish?: string
}
@@ -841,6 +868,7 @@ export type EventSessionError = {
| UnknownError
| MessageOutputLengthError
| MessageAbortedError
+ | StructuredOutputError
| ContextOverflowError
| ApiError
}
@@ -3403,6 +3431,7 @@ export type SessionPromptData = {
tools?: {
[key: string]: boolean
}
+ format?: OutputFormat
system?: string
variant?: string
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
@@ -3590,6 +3619,7 @@ export type SessionPromptAsyncData = {
tools?: {
[key: string]: boolean
}
+ format?: OutputFormat
system?: string
variant?: string
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>