Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 9 lines 255 Bytes
Raw
1 import type { ParseContext } from '../context';
2 import type { JsonSchemaObject } from '../types';
3
4 export const parseBoolean = <S>(
5 _jsonSchema: JsonSchemaObject & { type: 'boolean' },
6 ctx: ParseContext<S>
7 ): S => {
8 return ctx.backend.boolean();
9 };