module.exports = (config: any) => ({ schema: { type: 'function', function: { name: 'config_get_value', description: 'get a configuration value by key', parameters: { type: 'object', properties: { key: { type: 'string', description: 'The config key to get' } }, required: ['key'] } }, }, function: async function({key}: any) { return `${key}=${config[key] || ""}`; } })