banao-tech commited on
Commit
5824aee
Β·
verified Β·
1 Parent(s): 5ca2dab

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +9 -9
main.py CHANGED
@@ -32,7 +32,7 @@ from reportlab.platypus import (
32
  # ── App Setup ─────────────────────────────────────────────────────────────────
33
  app = FastAPI(
34
  title="Intern Problem-Solving API",
35
- description="Multi-agent system: Analyst β†’ Root Cause β†’ Solutions β†’ Action Plan",
36
  version="1.0.0",
37
  )
38
 
@@ -360,11 +360,11 @@ def build_pdf(analysis: FullAnalysis, name: str, role: str) -> bytes:
360
  fontSize=8, fontName="Helvetica", textColor=GRAY, alignment=1)
361
 
362
  SECTIONS = [
363
- ("Problem Analyst", analysis.problem_statement),
364
- ("Root Cause Analyst", analysis.root_causes),
365
  ("Solutions", analysis.solutions),
366
  ("Action Plan", analysis.action_plan),
367
- ("Thinking Coach", analysis.thinking_feedback),
368
  ]
369
 
370
  def render_block(md_text: str) -> list:
@@ -481,11 +481,11 @@ def analyze_stream(body: ProblemInput):
481
 
482
  def event_stream():
483
  agents = [
484
- ("analyst", AGENT_ANALYST, "Problem Analyst"),
485
- ("root_cause", AGENT_ROOT_CAUSE, "Root Cause Analyst"),
486
- ("solutions", AGENT_SOLUTIONS, "Solution Brainstorm"),
487
- ("action_plan", AGENT_ACTION_PLANNER, "Action Planner"),
488
- ("thinking", AGENT_THINKING_COACH, "Thinking Coach"),
489
  ]
490
 
491
  context = {
 
32
  # ── App Setup ─────────────────────────────────────────────────────────────────
33
  app = FastAPI(
34
  title="Intern Problem-Solving API",
35
+ description="5-step pipeline: Analysis β†’ Root Cause β†’ Solutions β†’ Action Plan β†’ Reflection",
36
  version="1.0.0",
37
  )
38
 
 
360
  fontSize=8, fontName="Helvetica", textColor=GRAY, alignment=1)
361
 
362
  SECTIONS = [
363
+ ("Problem Analysis", analysis.problem_statement),
364
+ ("Root Cause", analysis.root_causes),
365
  ("Solutions", analysis.solutions),
366
  ("Action Plan", analysis.action_plan),
367
+ ("Reflection", analysis.thinking_feedback),
368
  ]
369
 
370
  def render_block(md_text: str) -> list:
 
481
 
482
  def event_stream():
483
  agents = [
484
+ ("analyst", AGENT_ANALYST, "Problem Analysis"),
485
+ ("root_cause", AGENT_ROOT_CAUSE, "Root Cause"),
486
+ ("solutions", AGENT_SOLUTIONS, "Solutions"),
487
+ ("action_plan", AGENT_ACTION_PLANNER, "Action Plan"),
488
+ ("thinking", AGENT_THINKING_COACH, "Reflection"),
489
  ]
490
 
491
  context = {