@unified-llm/core
Version:
Unified LLM interface (in-memory).
17 lines • 476 B
JavaScript
import { defineTool } from '../types/unified-api';
export const getCurrentTime = defineTool({
type: 'function',
function: {
name: 'getCurrentTime',
description: 'Returns the current date and time in ISO format',
parameters: {
type: 'object',
properties: {},
required: []
}
},
handler: async () => {
return new Date().toISOString();
}
});
//# sourceMappingURL=getCurrentTime.js.map