from aegis_memory.integrations.crewai import AegisCrewMemoryfrom crewai import Crew, Agent, Task# Initialize Aegis memory backendmemory = AegisCrewMemory( api_key="dev-key", # Use your API key in production namespace="my-crew" # Isolates memories for this crew)# Create agents with memory enabledresearcher = Agent( role="Researcher", goal="Find accurate information", memory=True)writer = Agent( role="Writer", goal="Create clear content", memory=True)# Define tasksresearch_task = Task( description="Research the latest trends in AI agents", agent=researcher, expected_output="A summary of key trends")write_task = Task( description="Write a blog post based on the research", agent=writer, expected_output="A 500-word blog post")# Create crew with Aegis memorycrew = Crew( agents=[researcher, writer], tasks=[research_task, write_task], memory=memory)result = crew.kickoff()