@devries-cameron20 / composio Mirror · read-only
Fork 0

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 21, 03:37 UTC

next
ts 61 lines 1.32 KB
Raw
1 export type KnowledgeSourceType =
2 | 'docs'
3 | 'kb'
4 | 'oauth-guide'
5 | 'toolkit'
6 | 'example'
7 | 'reference'
8 | 'changelog'
9 | 'legacy';
10
11 export type ProductAreaSlug =
12 | 'authentication-and-connected-accounts'
13 | 'tools-actions-and-execution'
14 | 'triggers-and-workflows'
15 | 'sdk-api-and-mcp'
16 | 'account-billing-and-security';
17
18 export type KnowledgeIntent =
19 | 'setup'
20 | 'how-to'
21 | 'troubleshooting'
22 | 'limits-policy'
23 | 'known-issue'
24 | 'reference';
25
26 export interface ProductArea {
27 slug: ProductAreaSlug;
28 title: string;
29 description: string;
30 defaultBrowse: boolean;
31 }
32
33 export interface KnowledgeMetadata {
34 source_type: KnowledgeSourceType;
35 canonical_url: string;
36 product_areas: ProductAreaSlug[];
37 toolkit_slugs: string[];
38 intents: KnowledgeIntent[];
39 last_verified_at: string | null;
40 }
41
42 export interface KnowledgeClassificationInput {
43 sourceType: KnowledgeSourceType;
44 canonicalUrl: string;
45 productAreas?: string[];
46 topics?: string[];
47 toolkitSlugs?: string[];
48 intents?: KnowledgeIntent[];
49 lastVerifiedAt?: string | null;
50 }
51
52 export const KNOWLEDGE_SOURCE_LABELS: Record<KnowledgeSourceType, string> = {
53 docs: 'Docs',
54 kb: 'Knowledge Base',
55 'oauth-guide': 'OAuth',
56 toolkit: 'Toolkit',
57 example: 'Example',
58 reference: 'Reference',
59 changelog: 'Changelog',
60 legacy: 'Legacy Reference',
61 };