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
fix(docs): clean up API reference response structure
Sushmithamallesh8790a1027c04
diff --git a/docs/app/llms.mdx/[[...slug]]/route.ts b/docs/app/llms.mdx/[[...slug]]/route.tsindex 29b987b28..99bdaf50a 100644--- a/docs/app/llms.mdx/[[...slug]]/route.ts+++ b/docs/app/llms.mdx/[[...slug]]/route.ts@@ -208,16 +208,24 @@ async function openapiPageToMarkdown(}> | undefined;if (responses) {+ // Response status codes tablelines.push('### Responses', '');+ lines.push('| Status | Description |');+ lines.push('|--------|-------------|');for (const [status, response] of Object.entries(responses)) {- const desc = response.description || '';- lines.push(`#### ${status} - ${desc}`, '');+ const desc = (response.description || '').replace(/\|/g, '\\|').replace(/\n/g, ' ');+ lines.push(`| ${status} | ${desc} |`);+ }+ lines.push('');+ // Success response body (2xx only)+ for (const [status, response] of Object.entries(responses)) {+ if (!status.startsWith('2')) continue;const jsonContent = response.content?.['application/json'];if (jsonContent?.schema) {const schemaProps = renderSchemaProperties(jsonContent.schema);if (schemaProps.length > 0) {- lines.push('**Response body:**', '');+ lines.push(`### Response Body (${status})`, '');lines.push(...schemaProps);lines.push('');}