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

add slugs

Rahul Tarak committed Jun 18, 2025 at 23:25 UTC 5fb361796489e15e256ab8905a54df12d334a945
1 file changed +8 -4
fern/generators/tool_doc_generator/main.py
+8 -4
@@ -204,7 +204,7 @@ class DocumentContent:
204 self._blocks.extend(
205 [
206 "## Overview",
207 - f"### Enum\n`{app_id.upper()}`",
207 + f"### SLUG\n`{app_id.upper()}`",
208 f"### Description\n{sanitize_html(description)}",
209 ]
210 )
@@ -301,8 +301,8 @@ class DocumentContent:
301 Self reference for method chaining
302 """
303 # If this is the first action, add the Actions header
304 - if not any("## Actions" in block for block in self._blocks):
305 - self._blocks.append("## Actions")
304 + if not any("## Tools" in block for block in self._blocks):
305 + self._blocks.append("## Tools")
306
307 action_contents = []
308
@@ -328,7 +328,10 @@ class DocumentContent:
328 if not tool_data['name']:
329 return None
330
331 - content = [MDX.as_code_block(tool_data['description'], "text")]
331 + content = [
332 + f"**SLUG:** `{tool_data['slug']}`\n",
333 + MDX.as_code_block(tool_data['description'], "text")
334 + ]
335
336 # Add parameters
337 content.append("\n**Action Parameters**\n")
@@ -347,6 +350,7 @@ class DocumentContent:
350 return {
351 'name': tool.name or tool.slug,
352 'description': tool.description,
353 + "slug": tool.slug,
354 'params': tool.input_parameters,
355 'response': tool.output_parameters
356 }