include config while cretaing event based triggers

This commit is contained in:
Krishav Raj Singh 2025-09-24 02:44:33 +05:30
parent d5caa38e87
commit 58ba7409a4
1 changed files with 2 additions and 0 deletions

View File

@ -812,6 +812,8 @@ async def create_composio_trigger(req: CreateComposioTriggerRequest, current_use
"qualified_name": qualified_name, # Store the qualified_name for template export "qualified_name": qualified_name, # Store the qualified_name for template export
"execution_type": req.route if req.route in ("agent", "workflow") else "agent", "execution_type": req.route if req.route in ("agent", "workflow") else "agent",
"profile_id": req.profile_id, "profile_id": req.profile_id,
# Include the actual trigger configuration (interval, etc.)
**coerced_config,
} }
if suna_config["execution_type"] == "agent": if suna_config["execution_type"] == "agent":
if req.agent_prompt: if req.agent_prompt: