Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 14:30 UTC
feat(docs): add tool-router and examples to llms-full.txt
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 19, 2026 at 15:33 UTC
8631f832be3c80da810e637c16ef67f0c96ee98d
1 file changed
+28
-12
docs/app/llms-full.txt/route.ts
+28
-12
@@ -1,20 +1,36 @@
1
-import { getLLMText, source } from '@/lib/source';
1
+import { getLLMText, source, toolRouterSource, examplesSource } from '@/lib/source';
2
3
export const revalidate = false;
4
5
+async function getTextForPages(pages: ReturnType<typeof source.getPages>) {
6
+ return Promise.all(
7
+ pages.map(async (page) => {
8
+ try {
9
+ return await getLLMText(page);
10
+ } catch {
11
+ // Graceful fallback if getText fails
12
+ return `# ${page.data.title} (${page.url})\n\n${page.data.description || ''}`;
13
+ }
14
+ })
15
+ );
16
+}
17
+
18
export async function GET() {
19
try {
7
- const pages = source.getPages();
8
- const results = await Promise.all(
9
- pages.map(async (page) => {
10
- try {
11
- return await getLLMText(page);
12
- } catch {
13
- // Graceful fallback if getText fails
14
- return `# ${page.data.title} (${page.url})\n\n${page.data.description || ''}`;
15
- }
16
- })
17
- );
20
+ const [docsResults, toolRouterResults, examplesResults] = await Promise.all([
21
+ getTextForPages(source.getPages()),
22
+ getTextForPages(toolRouterSource.getPages()),
23
+ getTextForPages(examplesSource.getPages()),
24
+ ]);
25
+
26
+ const results = [
27
+ '# Documentation\n',
28
+ ...docsResults,
29
+ '\n# Tool Router\n',
30
+ ...toolRouterResults,
31
+ '\n# Examples\n',
32
+ ...examplesResults,
33
+ ];
34
35
return new Response(results.join('\n\n---\n\n'), {
36
headers: {