from swarms import Agent from swarms.prompts.finance_agent_sys_prompt import ( FINANCIAL_AGENT_SYS_PROMPT, ) # Initialize the agent agent = Agent( agent_name="Financial-Analysis-Agent", system_prompt=FINANCIAL_AGENT_SYS_PROMPT, model_name="gpt-4o-mini", max_loops=1, autosave=True, dashboard=False, verbose=True, dynamic_temperature_enabled=True, saved_state_path="finance_agent.json", user_name="swarms_corp", retry_attempts=1, streaming_on=True, context_length=200000, return_step_meta=False, output_type="str", # "json", "dict", "csv" OR "string" soon "yaml" and auto_generate_prompt=False, # Auto generate prompt for the agent based on name, description, and system prompt, task max_tokens=8000, ) agent.run( "How can I establish a ROTH IRA to buy stocks and get a tax break? What are the criteria. Create a report on this question.", all_cores=True, )