63 lines
2.8 KiB
TypeScript
63 lines
2.8 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 { Input } from "./Input";
|
|
import type { ProviderTool } from "./ProviderTool";
|
|
import type { Tool } from "./Tool";
|
|
import type { ToolChoice } from "./ToolChoice";
|
|
|
|
/**
|
|
* An update request for a chat datapoint.
|
|
*/
|
|
export type UpdateChatDatapointRequest = {
|
|
/**
|
|
* The ID of the datapoint to update. Required.
|
|
*/
|
|
id: string;
|
|
/**
|
|
* Datapoint input. If omitted, it will be left unchanged.
|
|
*/
|
|
input?: Input;
|
|
/**
|
|
* Chat datapoint output. If omitted, it will be left unchanged. If specified as `null`, it will be set to
|
|
* `null`. Otherwise, it will overwrite the existing output (and can be an empty array).
|
|
*/
|
|
output?: Array<ContentBlockChatOutput> | null;
|
|
/**
|
|
* Datapoint tags. If omitted, it will be left unchanged. If empty, it will be cleared. Otherwise,
|
|
* it will be overwrite the existing tags.
|
|
*/
|
|
tags?: { [key in string]: string };
|
|
/**
|
|
* A subset of static tools configured for the function that the inference is explicitly allowed to use.
|
|
* If omitted, it will be left unchanged. If specified as `null`, it will be cleared (we allow function-configured tools plus additional tools
|
|
* provided at inference time). If specified as a value, it will be set to the provided value.
|
|
*/
|
|
allowed_tools?: Array<string> | null;
|
|
/**
|
|
* Tools that the user provided at inference time (not in function config), in addition to the function-configured tools, that are also allowed.
|
|
* Modifying `additional_tools` DOES NOT automatically modify `allowed_tools`; `allowed_tools` must be explicitly updated to include
|
|
* new tools or exclude removed tools.
|
|
* If omitted, it will be left unchanged. If specified as a value, it will be set to the provided value.
|
|
*/
|
|
additional_tools?: Array<Tool>;
|
|
/**
|
|
* User-specified tool choice strategy.
|
|
* If omitted, it will be left unchanged. If specified as `null`, we will clear the dynamic tool choice and use function-configured tool choice.
|
|
*/
|
|
tool_choice?: ToolChoice | null;
|
|
/**
|
|
* Whether to use parallel tool calls in the inference.
|
|
* If omitted, it will be left unchanged. If specified as `null`, it will be set to `null`. If specified as a value, it will be set to the provided value.
|
|
*/
|
|
parallel_tool_calls?: boolean | null;
|
|
/**
|
|
* Provider-specific tool configurations
|
|
* If omitted, it will be left unchanged. If specified as a value, it will be set to the provided value.
|
|
*/
|
|
provider_tools?: Array<ProviderTool>;
|
|
/**
|
|
* Datapoint name. If omitted, it will be left unchanged. If specified as `null`, it will be set to `null`. If specified as a value, it will be set to the provided value.
|
|
*/
|
|
name?: string | null;
|
|
};
|