I tried writing a pre-processor like this:
import { TPreProcessor } from "composio-core"
export const preProcessor: TPreProcessor = ({ actionName, params }) => {
console.log(actionName, params)
switch (actionName) {
case "WEATHERMAP_WEATHER":
// Follows OpenWeatherMap API
return { ...params, units: "imperial" }
default:
return params
}
}
However it still comes back in kelvins. Do I need to also modify the SchemaProcessor to allow for it?