How azure-samples/contoso-creative-writer works
Main Components
a. Client Layer:
• React/TypeScript Web Application (src/web)
• Components for article display, debugging, and task management
• Redux store for state management
b. API Layer:
• FastAPI Backend (src/api)
• Agent Orchestrator
• Multiple AI Agents:
• Researcher Agent
• Product Agent
• Writer Agent
• Editor Agent
c. Azure Services:
• Azure OpenAI Service (GPT-4)
• Bing Search API
• Azure AI Search
• Azure Container Apps (hosting)
• Azure Monitor/Application Insights
• Azure Key Vault
User Interface → API Layer
• HTTP/REST communication
• Request/response flow for article generation
API Layer → Agents
• Orchestrator's control flow
• Sequential agent execution
• Data passing between agents
Agents → External Services
• Researcher → Bing Search API
• Product Agent → Azure AI Search
• All Agents → Azure OpenAI
Infrastructure Components
• Container Apps hosting both frontend and backend
• Key Vault securing credentials
• Application Insights for monitoring
Important Details to Highlight
a. Security Layer:
• Managed Identity connections
• Key Vault integration
• API security
b. Deployment Architecture:
• Container Apps environment
• Networking setup
• Service connections
c. Agent Workflow:
• Sequential processing
• Data transformation between agents
• Integration points
Infrastructure Layer
• Component types
• Security boundaries
• Service relationships