File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -1732,6 +1732,11 @@ def main():
17321732 type = str ,
17331733 help = "MCP URL for the agent" ,
17341734 )
1735+ parser .add_argument (
1736+ "--marketplace-prompt-id" ,
1737+ type = str ,
1738+ help = "Fetch system prompt from Swarms marketplace using this prompt ID" ,
1739+ )
17351740 # HeavySwarm specific arguments
17361741 parser .add_argument (
17371742 "--loops-per-agent" ,
@@ -1909,12 +1914,11 @@ def main():
19091914 )
19101915 elif args .command == "agent" :
19111916 # Validate required arguments
1912- required_args = [
1913- "name" ,
1914- "description" ,
1915- "system_prompt" ,
1916- "task" ,
1917- ]
1917+ # system_prompt not required if marketplace_prompt_id provided
1918+ required_args = ["name" , "description" , "task" ]
1919+ if not getattr (args , "marketplace_prompt_id" , None ):
1920+ required_args .append ("system_prompt" )
1921+
19181922 missing_args = [
19191923 arg
19201924 for arg in required_args
@@ -1955,6 +1959,7 @@ def main():
19551959 "saved_state_path" : "saved_state_path" ,
19561960 "user_name" : "user_name" ,
19571961 "mcp_url" : "mcp_url" ,
1962+ "marketplace_prompt_id" : "marketplace_prompt_id" ,
19581963 }
19591964
19601965 for cli_arg , agent_param in param_mapping .items ():
You can’t perform that action at this time.
0 commit comments