Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/update-provider-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y protobuf-compiler
npm install -g braintrust || echo "::warning::Failed to install Braintrust SDK; parent trace setup will be skipped"
pnpm add -g quicktype
pnpm install --filter @lingua/quicktype-toolchain --frozen-lockfile

- name: Create Braintrust workflow trace
id: braintrust_trace
Expand Down
2 changes: 1 addition & 1 deletion bindings/typescript/src/generated/ToolCaller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ToolCallerType } from "./ToolCallerType";

export type ToolCaller = { type: ToolCallerType, caller_id: string, };
export type ToolCaller = { type: ToolCallerType, caller_id: string | null, };
2 changes: 1 addition & 1 deletion bindings/typescript/src/generated/ToolCallerType.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type ToolCallerType = "program";
export type ToolCallerType = "direct" | "program";
7 changes: 4 additions & 3 deletions bindings/typescript/src/generated/openai/AmbitiousType.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

/**
* Specifies the event type. For a computer screenshot, this property is
* always set to `computer_screenshot`.
* The type of the output. Always `logs`.
*
* The type of the output. Always `image`.
*/
export type AmbitiousType = "computer_screenshot";
export type AmbitiousType = "image" | "logs";
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { PromptCacheBreakpointMode } from "./PromptCacheBreakpointMode";

/**
* Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the
* request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
*/
export type ArrayOfContentPartPromptCacheBreakpoint = {
/**
* The breakpoint mode. Always `explicit`.
*/
mode: PromptCacheBreakpointMode, };
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

/**
* The tool invocation context(s).
*/
export type CallableToolAllowedCaller = "direct" | "programmatic";
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ChatCompletionRequestMessageContentPart } from "./ChatCompletionRequestMessageContentPart";
import type { PurpleContentPart } from "./PurpleContentPart";

export type ChatCompletionRequestMessageContent = Array<ChatCompletionRequestMessageContentPart> | string;
export type ChatCompletionRequestMessageContent = Array<PurpleContentPart> | string;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { CunningType } from "./CunningType";
import type { AmbitiousType } from "./AmbitiousType";

/**
* The outputs generated by the code interpreter, such as logs or images.
Expand All @@ -20,7 +20,7 @@ logs: string | null,
*
* The type of the output. Always `image`.
*/
type: CunningType,
type: AmbitiousType,
/**
* The URL of the image output from the code interpreter.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { AmbitiousType } from "./AmbitiousType";
import type { ComputerScreenshotImageType } from "./ComputerScreenshotImageType";

/**
* A computer screenshot image used with the computer use tool.
Expand All @@ -17,4 +17,4 @@ image_url: string | null,
* Specifies the event type. For a computer screenshot, this property is
* always set to `computer_screenshot`.
*/
type: AmbitiousType, };
type: ComputerScreenshotImageType, };
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

/**
* Specifies the event type. For a computer screenshot, this property is
* always set to `computer_screenshot`.
*/
export type ComputerScreenshotImageType = "computer_screenshot";
4 changes: 2 additions & 2 deletions bindings/typescript/src/generated/openai/ConnectorId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* Identifier for service connectors, like those available in ChatGPT. One of
* `server_url` or `connector_id` must be provided. Learn more about service
* connectors [here](/docs/guides/tools-remote-mcp#connectors).
* `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
* about service connectors [here](/docs/guides/tools-remote-mcp#connectors).
*
* Currently supported `connector_id` values are:
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Annotation } from "./Annotation";
import type { DetailEnum } from "./DetailEnum";
import type { HilariousType } from "./HilariousType";
import type { InputItemContentListPromptCacheBreakpoint } from "./InputItemContentListPromptCacheBreakpoint";
import type { LogProbability } from "./LogProbability";

/**
* A list of one or many input items to the model, containing different content
* types.
*
*
* Text, image, or file output of the custom tool call.
*
*
* Text, image, or file output of the function call.
*
*
* A text input to the model.
*
* An image input to the model. Learn about [image inputs](/docs/guides/vision).
*
* A file input to the model.
*
* A text output from the model.
*
* A refusal from the model.
*
* Reasoning text from the model.
*/
export type ContentInputItemContentList = { prompt_cache_breakpoint: InputItemContentListPromptCacheBreakpoint | null,
/**
* The text input to the model.
*
* The text output from the model.
*
* The reasoning text from the model.
*/
text: string | null,
/**
* The type of the input item. Always `input_text`.
*
* The type of the input item. Always `input_image`.
*
* The type of the input item. Always `input_file`.
*
* The type of the output text. Always `output_text`.
*
* The type of the refusal. Always `refusal`.
*
* The type of the reasoning text. Always `reasoning_text`.
*/
type: HilariousType,
/**
* The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or
* `original`. Defaults to `auto`.
*
* The detail level of the file to be sent to the model. Use `auto` to let the system select
* the detail level; for GPT-5.6 and later models, `auto` uses high-quality rendering, which
* may increase input token usage. Use `low` for lower-cost rendering, or `high` to render
* the file at higher quality. Defaults to `auto`.
*/
detail: DetailEnum | null, file_id: string | null, image_url: string | null,
/**
* The content of the file to be sent to the model.
*/
file_data: string | null,
/**
* The URL of the file to be sent to the model.
*/
file_url: string | null,
/**
* The name of the file to be sent to the model.
*/
filename: string | null,
/**
* The annotations of the text output.
*/
annotations: Array<Annotation> | null, logprobs: Array<LogProbability> | null,
/**
* The refusal explanation from the model.
*/
refusal: string | null, };
6 changes: 2 additions & 4 deletions bindings/typescript/src/generated/openai/CunningType.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

/**
* The type of the output. Always `logs`.
*
* The type of the output. Always `image`.
* The type of the inline skill source. Must be `base64`.
*/
export type CunningType = "image" | "logs";
export type CunningType = "base64";
6 changes: 4 additions & 2 deletions bindings/typescript/src/generated/openai/DetailEnum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
* The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or
* `original`. Defaults to `auto`.
*
* The detail level of the file to be sent to the model. Use `low` for the default rendering
* behavior, or `high` to render the file at higher quality. Defaults to `low`.
* The detail level of the file to be sent to the model. Use `auto` to let the system select
* the detail level; for GPT-5.6 and later models, `auto` uses high-quality rendering, which
* may increase input token usage. Use `low` for lower-cost rendering, or `high` to render
* the file at higher quality. Defaults to `auto`.
*/
export type DetailEnum = "auto" | "high" | "low" | "original";
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

/**
* The caller type. Always `direct`.
*
* The caller type. Always `program`.
*/
export type DirectToolCallCallerType = "direct" | "program";
5 changes: 3 additions & 2 deletions bindings/typescript/src/generated/openai/FunctionToolParam.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { CallableToolAllowedCaller } from "./CallableToolAllowedCaller";
import type { FluffyType } from "./FluffyType";
import type { ToolFormat } from "./ToolFormat";

Expand All @@ -8,7 +9,7 @@ import type { ToolFormat } from "./ToolFormat";
* A custom tool that processes input using a specified format. Learn more about [custom
* tools](/docs/guides/function-calling#custom-tools)
*/
export type FunctionToolParam = {
export type FunctionToolParam = { allowed_callers: Array<CallableToolAllowedCaller> | null,
/**
* Whether this function should be deferred and discovered via tool search.
*
Expand All @@ -22,7 +23,7 @@ description: string | null,
/**
* The name of the custom tool, used to identify it in tool calls.
*/
name: string, parameters: unknown, strict: boolean | null,
name: string, output_schema: unknown, parameters: unknown, strict: boolean | null,
/**
* The type of the custom tool. Always `custom`.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { MagentaType } from "./MagentaType";
import type { CunningType } from "./CunningType";
import type { MediaType } from "./MediaType";

/**
Expand All @@ -17,4 +17,4 @@ media_type: MediaType,
/**
* The type of the inline skill source. Must be `base64`.
*/
type: MagentaType, };
type: CunningType, };
40 changes: 34 additions & 6 deletions bindings/typescript/src/generated/openai/InputItem.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ToolCaller } from "../ToolCaller";
import type { Arguments } from "./Arguments";
import type { CodeInterpreterOutput } from "./CodeInterpreterOutput";
import type { ComputerAction } from "./ComputerAction";
import type { ComputerCallSafetyCheckParam } from "./ComputerCallSafetyCheckParam";
import type { InputItemAction } from "./InputItemAction";
import type { InputItemContent } from "./InputItemContent";
import type { InputItemDirectToolCallCaller } from "./InputItemDirectToolCallCaller";
import type { InputItemLocalEnvironmentParam } from "./InputItemLocalEnvironmentParam";
import type { InputItemRole } from "./InputItemRole";
import type { InputItemTool } from "./InputItemTool";
import type { InputItemType } from "./InputItemType";
import type { MessagePhase } from "./MessagePhase";
import type { Output } from "./Output";
import type { PurpleApplyPatchOperation } from "./PurpleApplyPatchOperation";
import type { Result } from "./Result";
import type { ResultElement } from "./ResultElement";
import type { Status } from "./Status";
import type { SummaryText } from "./SummaryText";
import type { ToolSearchExecutionType } from "./ToolSearchExecutionType";
Expand Down Expand Up @@ -219,6 +219,10 @@ role: InputItemRole | null,
*
*
* The type of the item. Always `compaction_trigger`.
*
* The item type. Always `program`.
*
* The item type. Always `program_output`.
*/
type: InputItemType | null,
/**
Expand Down Expand Up @@ -257,6 +261,9 @@ type: InputItemType | null,
*
* The status of the tool call. One of `in_progress`, `completed`, `incomplete`, `calling`,
* or `failed`.
*
*
* The terminal status of the program output.
*/
status: Status | null,
/**
Expand Down Expand Up @@ -305,12 +312,16 @@ status: Status | null,
*
*
* The ID of the item to reference.
*
* The unique ID of this program item.
*
* The unique ID of this program output item.
*/
id: string | null,
/**
* The queries used to search for files.
*/
queries: Array<string> | null, results: Array<Result> | null,
queries: Array<string> | null, results: Array<ResultElement> | null,
/**
* An object describing the specific action taken in this web search call.
* Includes details on how the model used the web (search, open_page, find_in_page).
Expand Down Expand Up @@ -341,6 +352,11 @@ action: InputItemAction | null, actions: Array<ComputerAction> | null,
*
*
* An identifier used to map this custom tool call to a tool call output.
*
*
* The stable call ID of the program item.
*
* The call ID of the program item.
*/
call_id: unknown,
/**
Expand Down Expand Up @@ -370,7 +386,7 @@ output: Output | null,
*
* A JSON string of the arguments passed to the tool.
*/
arguments: Arguments | null,
arguments: Arguments | null, caller: InputItemDirectToolCallCaller | null,
/**
* The name of the function to run.
*
Expand Down Expand Up @@ -410,7 +426,15 @@ encrypted_content: string | null,
/**
* Reasoning summary content.
*/
summary: Array<SummaryText> | null, result: string | null, code: string | null, fingerprint: string | null, caller: ToolCaller | null,
summary: Array<SummaryText> | null,
/**
* The result produced by the program item.
*/
result: string | null,
/**
* The JavaScript source executed by programmatic tool calling.
*/
code: string | null,
/**
* The ID of the container used to run the code.
*/
Expand Down Expand Up @@ -440,4 +464,8 @@ approve: boolean | null, reason: string | null, request_id: unknown,
/**
* The input for the custom tool call generated by the model.
*/
input: string | null, };
input: string | null,
/**
* Opaque program replay fingerprint that must be round-tripped.
*/
fingerprint: string | null, };
4 changes: 2 additions & 2 deletions bindings/typescript/src/generated/openai/InputItemContent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ContentOutputContentList } from "./ContentOutputContentList";
import type { ContentInputItemContentList } from "./ContentInputItemContentList";

export type InputItemContent = Array<ContentOutputContentList> | string;
export type InputItemContent = Array<ContentInputItemContentList> | string;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { PromptCacheBreakpointMode } from "./PromptCacheBreakpointMode";

/**
* Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the
* request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
*/
export type InputItemContentListPromptCacheBreakpoint = {
/**
* The breakpoint mode. Always `explicit`.
*/
mode: PromptCacheBreakpointMode, };
Loading
Loading