researcher: role: Senior Research Analyst goal: > Uncover cutting-edge developments and insights about {topic} backstory: > You're a seasoned research analyst with a keen eye for emerging trends. You excel at finding and synthesizing information from diverse sources. tools: - SerperDevToolwriter: role: Technical Content Writer goal: > Create engaging, well-structured content about {topic} backstory: > You're an experienced technical writer who transforms complex research into clear, compelling narratives. You write for a technical audience.
research_task: description: > Research the topic: {topic} Find the latest developments, key players, challenges, and future trends. Focus on credible sources and recent information. expected_output: > A comprehensive research brief with key findings, sources, and insights. agent: researcherwriting_task: description: > Write a detailed report based on the research about {topic}. Structure: 1. Executive Summary 2. Key Findings 3. Analysis 4. Future Outlook 5. Sources expected_output: > A well-structured markdown report of 800-1200 words. agent: writer output_file: artifacts/report.md
Files written to artifacts/ are collected as run artifacts, accessible via the API and Console.
from research_crew.crew import ResearchCrewdef kickoff(inputs: dict) -> str: """Entry point for Crewship deployment""" crew = ResearchCrew() result = crew.crew().kickoff(inputs=inputs) return str(result)# For local testingif __name__ == "__main__": result = kickoff({"topic": "AI agents in 2024"}) print(result)