@devries-cameron20 / composio-1 / commits / c428541d6
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.

Fix docs strings

haxzie committed May 20, 2025 at 18:12 UTC c428541d62e0415ffee672dd883552d6b4e5441f
2 files changed +6 -2
packages/core/src/models/Toolkits.ts
+5 -1
@@ -167,8 +167,12 @@ export class Toolkits {
167 * This method will create an auth config if one doesn't exist and initiate a connection request.
168 * @param {string} userId - The user id of the user to authorize
169 * @param {string} toolkitSlug - The slug of the toolkit to authorize
170 - * @param {string} authConfigId - The id of the auth config to use
170 * @returns {Promise<ConnectionRequest>} The connection request object
171 + *
172 + * @example
173 + * ```typescript
174 + * const connectionRequest = await composio.toolkits.authorize(userId, 'github');
175 + * ```
176 */
177 async authorize(userId: string, toolkitSlug: string): Promise<ConnectionRequest> {
178 const toolkit = await this.getToolkitBySlug(toolkitSlug);
packages/core/src/models/Tools.ts
+1 -1
@@ -300,7 +300,7 @@ export class Tools<
300 }
301
302 /**
303 - * Get a list of tools by their slugs
303 + * Get a list of tools from composio based on filters
304 * @param userId - The user id
305 * @param filters - The filters for the tools
306 * @param options - The options for the tools