char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Aleksander Grygierui: Refactor Built-In Tools naming (Server/Browser) (#27271)0021a77de

char/aliceai-t5-moe
577 B20 linesraw
1import { BuiltInTool, JsonSchemaType, ToolCallType } from '$lib/enums';
2import type { OpenAIToolDefinition } from '$lib/types';
3
4export const GET_DATETIME_TOOL_NAME = BuiltInTool.BROWSER_GET_DATETIME;
5
6export function buildGetDatetimeToolDefinition(): OpenAIToolDefinition {
7	return {
8		function: {
9			description:
10				'Returns the current local date and time in ISO 8601 format, with the IANA time zone name',
11			name: GET_DATETIME_TOOL_NAME,
12			parameters: {
13				properties: {},
14				required: [],
15				type: JsonSchemaType.OBJECT
16			}
17		},
18		type: ToolCallType.FUNCTION
19	};
20}