53 lines
1.9 KiB
TypeScript
53 lines
1.9 KiB
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { ContentBlockChatOutput } from "./ContentBlockChatOutput";
|
|
import type { ExtraBody } from "./ExtraBody";
|
|
import type { InferenceParams } from "./InferenceParams";
|
|
import type { ProviderTool } from "./ProviderTool";
|
|
import type { StoredInput } from "./StoredInput";
|
|
import type { Tool } from "./Tool";
|
|
import type { ToolChoice } from "./ToolChoice";
|
|
|
|
/**
|
|
* Wire variant of StoredChatInference for API responses with Python/TypeScript bindings
|
|
*/
|
|
export type StoredChatInference = {
|
|
function_name: string;
|
|
variant_name: string;
|
|
input?: StoredInput;
|
|
output?: Array<ContentBlockChatOutput>;
|
|
dispreferred_outputs: Array<Array<ContentBlockChatOutput>>;
|
|
timestamp: string;
|
|
episode_id: string;
|
|
inference_id: string;
|
|
tags: { [key in string]: string };
|
|
extra_body?: Array<ExtraBody>;
|
|
inference_params?: InferenceParams;
|
|
processing_time_ms?: bigint;
|
|
ttft_ms?: bigint;
|
|
snapshot_hash?: string;
|
|
/**
|
|
* A subset of static tools configured for the function that the inference is allowed to use. Optional.
|
|
* If not provided, all static tools are allowed.
|
|
*/
|
|
allowed_tools?: Array<string>;
|
|
/**
|
|
* Tools that the user provided at inference time (not in function config), in addition to the function-configured
|
|
* tools, that are also allowed.
|
|
*/
|
|
additional_tools?: Array<Tool>;
|
|
/**
|
|
* User-specified tool choice strategy. If provided during inference, it will override the function-configured tool choice.
|
|
* Optional.
|
|
*/
|
|
tool_choice?: ToolChoice;
|
|
/**
|
|
* Whether to use parallel tool calls in the inference. Optional.
|
|
* If provided during inference, it will override the function-configured parallel tool calls.
|
|
*/
|
|
parallel_tool_calls?: boolean;
|
|
/**
|
|
* Provider-specific tool configurations
|
|
*/
|
|
provider_tools: Array<ProviderTool>;
|
|
};
|