Felipe97/llama-cpp-compiled
01.2k
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.OBJECT16 }17 },18 type: ToolCallType.FUNCTION19 };20}21 