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): add tool-router and examples to llms-full.txt
Sushmithamallesh8631f832be3c
diff --git a/docs/app/llms-full.txt/route.ts b/docs/app/llms-full.txt/route.tsindex 98ca6ad06..e92abcc68 100644--- a/docs/app/llms-full.txt/route.ts+++ b/docs/app/llms-full.txt/route.ts@@ -1,20 +1,36 @@-import { getLLMText, source } from '@/lib/source';+import { getLLMText, source, toolRouterSource, examplesSource } from '@/lib/source';export const revalidate = false;+async function getTextForPages(pages: ReturnType<typeof source.getPages>) {+ return Promise.all(+ pages.map(async (page) => {+ try {+ return await getLLMText(page);+ } catch {+ // Graceful fallback if getText fails+ return `# ${page.data.title} (${page.url})\n\n${page.data.description || ''}`;+ }+ })+ );+}+export async function GET() {try {- const pages = source.getPages();- const results = await Promise.all(- pages.map(async (page) => {- try {- return await getLLMText(page);- } catch {- // Graceful fallback if getText fails- return `# ${page.data.title} (${page.url})\n\n${page.data.description || ''}`;- }- })- );+ const [docsResults, toolRouterResults, examplesResults] = await Promise.all([+ getTextForPages(source.getPages()),+ getTextForPages(toolRouterSource.getPages()),+ getTextForPages(examplesSource.getPages()),+ ]);++ const results = [+ '# Documentation\n',+ ...docsResults,+ '\n# Tool Router\n',+ ...toolRouterResults,+ '\n# Examples\n',+ ...examplesResults,+ ];return new Response(results.join('\n\n---\n\n'), {headers: {