Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
feat(docs): Display enum values in toolkit parameter types
Sushmithamallesh4a58f0a7da14
diff --git a/docs/components/toolkits/toolkit-detail.tsx b/docs/components/toolkits/toolkit-detail.tsxindex 49d74cb67..319681a1f 100644--- a/docs/components/toolkits/toolkit-detail.tsx+++ b/docs/components/toolkits/toolkit-detail.tsx@@ -36,6 +36,19 @@ function formatDefault(value: unknown): string | undefined {return String(value);}+// Format type with enum values if available+function formatType(param: ParameterSchema): string {+ let typeStr = param.type || 'string';++ // Include enum values in type display+ if (param.enum && param.enum.length > 0) {+ const enumValues = param.enum.map(v => `"${v}"`).join(' | ');+ typeStr = `${typeStr} (${enumValues})`;+ }++ return typeStr;+}+// Convert parameter schema to TypeTable formatfunction paramsToTypeTable(params: Record<string, ParameterSchema>): Record<string, {type: string;@@ -52,7 +65,7 @@ function paramsToTypeTable(params: Record<string, ParameterSchema>): Record<strifor (const [name, param] of Object.entries(params)) {result[name] = {- type: param.type || 'string',+ type: formatType(param),description: param.description || undefined,default: formatDefault(param.default),required: param.required,