from crewai import Agent, Crew, Task
researcher = Agent(
role="Market Researcher",
goal="Find and analyze competitors",
backstory="Expert market analyst",
)
analyst = Agent(
role="Strategy Analyst",
goal="Synthesize research into insights",
backstory="Senior strategy consultant",
)
# Both agents share memory via Z3rno
crew = Crew(
agents=[researcher, analyst],
tasks=[...],
memory=True,
short_term_memory=Z3rnoCrewAIStorage(client, agent_id="crew-1", memory_type="short_term"),
long_term_memory=Z3rnoCrewAIStorage(client, agent_id="crew-1", memory_type="long_term"),
entity_memory=Z3rnoCrewAIStorage(client, agent_id="crew-1", memory_type="entity"),
)
result = crew.kickoff()