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, 04:45 UTC
| 1 | import type { Composio as ComposioClient } from '@composio/client'; |
| 2 | import type { BaseComposioProvider } from '../provider/BaseProvider'; |
| 3 | import type { ComposioConfig } from '../composio'; |
| 4 | import { ToolRouter } from './ToolRouter'; |
| 5 | |
| 6 | /** |
| 7 | * First-class API for creating and reusing Composio sessions. |
| 8 | * |
| 9 | * `composio.sessions.create(...)` is the canonical session creation entrypoint. |
| 10 | * The top-level `composio.create(...)` method remains as a backwards-compatible |
| 11 | * alias for `composio.sessions.create(...)`. |
| 12 | */ |
| 13 | export class Sessions< |
| 14 | TToolCollection, |
| 15 | TTool, |
| 16 | TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>, |
| 17 | > extends ToolRouter<TToolCollection, TTool, TProvider> { |
| 18 | constructor(client: ComposioClient, config?: ComposioConfig<TProvider>) { |
| 19 | super(client, config); |
| 20 | } |
| 21 | } |