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 { Argument, Command, Flag } from 'effect/cli'; |
| 2 | import { runToolkitsSearch } from './toolkits.search.handler'; |
| 3 | |
| 4 | const query = Argument.String('query').pipe( |
| 5 | Argument.withDescription('Search query (e.g. "send emails")') |
| 6 | ); |
| 7 | |
| 8 | const limit = Flag.Int('limit').pipe( |
| 9 | Flag.withDefault(10), |
| 10 | Flag.withDescription('Number of results per page (1-1000)') |
| 11 | ); |
| 12 | |
| 13 | /** |
| 14 | * Search toolkits by use case. |
| 15 | * |
| 16 | * @example |
| 17 | * ```bash |
| 18 | * composio dev toolkits search "send emails" |
| 19 | * composio dev toolkits search "messaging" --limit 5 |
| 20 | * ``` |
| 21 | */ |
| 22 | export const toolkitsCmd$Search = Command.make('search', { query, limit }, runToolkitsSearch).pipe( |
| 23 | Command.withDescription('Search toolkits by use case.') |
| 24 | ); |