33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { JsonValue } from "./serde_json/JsonValue";
|
|
|
|
/**
|
|
* An InferenceResponseToolCall is a request by a model to call a Tool
|
|
* in the form that we return to the client / ClickHouse
|
|
* This includes some synactic sugar (parsing / validation of the tool arguments)
|
|
* in the `arguments` field and the name in the `name` field.
|
|
* We support looping this back through the TensorZero inference API via the ToolCallWrapper
|
|
*/
|
|
export type InferenceResponseToolCall = {
|
|
/**
|
|
* A Tool Call ID to match up with tool call responses. See #4058.
|
|
*/
|
|
id: string;
|
|
/**
|
|
* The name of the tool to call, as generated by the model.
|
|
*/
|
|
raw_name: string;
|
|
/**
|
|
* The raw arguments JSON string of the tool to call, as generated by the model.
|
|
*/
|
|
raw_arguments: string;
|
|
/**
|
|
* The name of the tool to call, validated against tool configs. If not present, it means the tool call was invalid.
|
|
*/
|
|
name: string | null;
|
|
/**
|
|
* The arguments of the tool to call, validated against tool configs. If not present, it means the tool call arguments were invalid.
|
|
*/
|
|
arguments: JsonValue | null;
|
|
};
|