39 lines
1.9 KiB
TypeScript
39 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 { ProviderTool } from "./ProviderTool";
|
|
import type { Tool } from "./Tool";
|
|
import type { ToolChoice } from "./ToolChoice";
|
|
|
|
/**
|
|
* A request to update the dynamic tool parameters of a datapoint.
|
|
*/
|
|
export type UpdateDynamicToolParamsRequest = {
|
|
/**
|
|
* 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>;
|
|
};
|