shitton of the ai changes

This commit is contained in:
2026-05-01 04:54:11 +03:00
parent d95c37a322
commit 8cff086a8e
194 changed files with 29409 additions and 8841 deletions
+38
View File
@@ -0,0 +1,38 @@
export type AiJsonPrimitive = string | number | boolean | null;
export interface AiJsonObject {
readonly [key: string]: AiJsonValue;
}
export type AiJsonValue = AiJsonPrimitive | undefined | readonly AiJsonValue[] | AiJsonObject;
export interface AiToolParameters {
type: "object" | "string" | "number" | "integer" | "boolean" | "array";
properties?: Record<string, AiToolParameters>;
required?: readonly string[];
items?: AiToolParameters;
enum?: readonly string[];
description?: string;
minItems?: number;
maxItems?: number;
minimum?: number;
maximum?: number;
default?: AiJsonValue;
additionalProperties?: boolean | AiToolParameters;
}
export type AiTool = {
type: "function";
function: {
name: string;
description?: string;
type?: string;
parameters?: AiToolParameters;
};
};
export type AiToolCall = {
function: {
name: string;
arguments: AiJsonObject;
};
};