@devries-cameron20 / composio Mirror · read-only / commits / 219d08bf8
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 23, 00:30 UTC

fix: trigger snippet formatting

angrybayblade committed Jun 16, 2025 at 19:40 UTC 219d08bf84d87342b592f9e8dcd669a0e1a84992
1 file changed +5 -11
fern/docs/triggers/using-triggers.mdx
+5 -11
@@ -173,21 +173,15 @@ await composio.triggers.subscribe(
173 )
174 ```
175 ```python Python maxLines=60 wordWrap
176 -user_id = uuid.uuid4()
176 +user_id = "user@email.com"
177 +
178 # Subscribe to a trigger
179 subscription = composio.triggers.subscribe()
179 -# Define a handler
180 -@subscription.handle(
181 - toolkit="GITHUB",
182 - user_id=user_id,
183 - # trigger_slug="GITHUB_STAR_ADDED_EVENT"
184 - # auth_config_id="ac_1234567890",
185 - # trigger_id="ti_So9EQf8XnAcy",
180
187 -)
181 +# Define a handler
182 +@subscription.handle(toolkit="GITHUB", user_id=user_id)
183 def handle_github_event(data):
189 -print(data)
190 -
184 + print(data)
185 ```
186 </CodeGroup>
187