ziadsameh32 commited on
Commit
bba3760
·
1 Parent(s): 22b757f

final-version

Browse files
routers/outcome_route.py CHANGED
@@ -11,13 +11,12 @@ from modules import (
11
  inputs,
12
  )
13
  from schemas import (
14
- LearningObjectivesOutput,
15
  DNAMetadata,
16
  OutlineInput,
17
  )
18
 
19
 
20
-
21
  router = APIRouter(prefix="/analysis", tags=["outcomes"])
22
 
23
 
@@ -27,7 +26,7 @@ router = APIRouter(prefix="/analysis", tags=["outcomes"])
27
 
28
 
29
  @router.post("/outcomes")
30
- def run_outcomes(data: OutlineInput, objectives: LearningObjectivesOutput):
31
  outcomes_crew = Crew(
32
  agents=[outcomes_generator],
33
  tasks=[outcomes_task],
 
11
  inputs,
12
  )
13
  from schemas import (
14
+ ObjectivesAgentRequest,
15
  DNAMetadata,
16
  OutlineInput,
17
  )
18
 
19
 
 
20
  router = APIRouter(prefix="/analysis", tags=["outcomes"])
21
 
22
 
 
26
 
27
 
28
  @router.post("/outcomes")
29
+ def run_outcomes(data: OutlineInput, objectives: ObjectivesAgentRequest):
30
  outcomes_crew = Crew(
31
  agents=[outcomes_generator],
32
  tasks=[outcomes_task],
routers/training_route.py CHANGED
@@ -11,13 +11,12 @@ from modules import (
11
  inputs,
12
  )
13
  from schemas import (
14
- LearningObjectivesOutput,
15
  DNAMetadata,
16
  OutlineInput,
17
  )
18
 
19
 
20
-
21
  router = APIRouter(prefix="/analysis", tags=["training"])
22
 
23
  # ------------------------------------
@@ -26,7 +25,7 @@ router = APIRouter(prefix="/analysis", tags=["training"])
26
 
27
 
28
  @router.get("/training")
29
- def run_training(data: OutlineInput, objectives: LearningObjectivesOutput):
30
  training_crew = Crew(
31
  agents=[training_agent],
32
  tasks=[training_task],
 
11
  inputs,
12
  )
13
  from schemas import (
14
+ ObjectivesAgentRequest,
15
  DNAMetadata,
16
  OutlineInput,
17
  )
18
 
19
 
 
20
  router = APIRouter(prefix="/analysis", tags=["training"])
21
 
22
  # ------------------------------------
 
25
 
26
 
27
  @router.get("/training")
28
+ def run_training(data: OutlineInput, objectives: ObjectivesAgentRequest):
29
  training_crew = Crew(
30
  agents=[training_agent],
31
  tasks=[training_task],