40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { Input } from "./Input";
|
|
import type { JsonDatapointOutputUpdate } from "./JsonDatapointOutputUpdate";
|
|
import type { JsonValue } from "./serde_json/JsonValue";
|
|
|
|
/**
|
|
* A request to create a JSON datapoint.
|
|
*/
|
|
export type CreateJsonDatapointRequest = {
|
|
/**
|
|
* The function name for this datapoint. Required.
|
|
*/
|
|
function_name: string;
|
|
/**
|
|
* Episode ID that the datapoint belongs to. Optional.
|
|
*/
|
|
episode_id?: string;
|
|
/**
|
|
* Input to the function. Required.
|
|
*/
|
|
input: Input;
|
|
/**
|
|
* JSON datapoint output. Optional.
|
|
*/
|
|
output?: JsonDatapointOutputUpdate;
|
|
/**
|
|
* The output schema of the JSON datapoint. Optional.
|
|
* If not provided, the function's output schema will be used. If provided, it will be validated.
|
|
*/
|
|
output_schema?: JsonValue;
|
|
/**
|
|
* Tags associated with this datapoint. Optional.
|
|
*/
|
|
tags?: { [key in string]: string };
|
|
/**
|
|
* Human-readable name for the datapoint. Optional.
|
|
*/
|
|
name?: string;
|
|
};
|