How strnad/crewai-studio works
Main Components
a) Frontend Layer:
• Streamlit Interface (app.py as the entry point)
• User Interface Components for:
• Crew Management
• Agent Configuration
• Task Management
• Tool Integration
b) Core Application Layer:
• Agent Management System (my_agent.py)
• Crew Management System (my_crew.py)
• Task Management System (my_task.py)
• Tool Management System (my_tools.py, custom_tools.py)
c) Database Layer:
• PostgreSQL Integration (db_utils.py)
• Data Models for:
• Agents (pg_agents.py)
• Crews (pg_crews.py)
• Tasks (pg_tasks.py)
• Tools (pg_tools.py)
d) External Services:
• LLM Providers (llms.py):
• OpenAI
• Groq
• Anthropic
• LM Studio
Connection and Data Flow
• User interactions → Streamlit Interface
• Streamlit → Core Application Layer
• Core Application ↔ Database Layer
• Core Application ↔ External LLM Services
• Tool Integration paths
Additional Elements
• A version indicator
• Configuration dependencies (.env)
• Deployment options (local/RepoCloud)
• Threading capabilities
The database integration for persistence
Keep the abstraction level high enough to show the overall architecture while including enough detail to understand the system's core functionality and interactions.
Remember to indicate the asynchronous nature of crew operations and the ability to export crews as standalone applications, as these are key features of the system.