eaglelandsonce commited on
Commit
ab7a9e1
·
verified ·
1 Parent(s): a29567e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -40,7 +40,7 @@ class SpaceSystemCrew:
40
 
41
  self.system_architect = Agent(
42
  role="System Architect",
43
- goal=f"Analyze and refine the space system concept based on the provided description",
44
  backstory="Expert in space system design, ensuring logical consistency and feasibility",
45
  allow_delegation=False,
46
  verbose=True,
@@ -49,7 +49,7 @@ class SpaceSystemCrew:
49
 
50
  self.mechanical_engineer = Agent(
51
  role="Mechanical Engineer",
52
- goal=f"Refine structural and propulsion mechanisms based on the provided description",
53
  backstory="Specialist in high-velocity launch systems and orbital stabilization",
54
  allow_delegation=False,
55
  verbose=True,
@@ -58,7 +58,7 @@ class SpaceSystemCrew:
58
 
59
  self.aerospace_manager = Agent(
60
  role="Aerospace Mission Manager",
61
- goal=f"Ensure mission feasibility and refine execution details based on the provided description",
62
  backstory="Oversees project feasibility, mission planning, and ensures integration with existing aerospace infrastructure",
63
  allow_delegation=False,
64
  verbose=True,
@@ -67,7 +67,7 @@ class SpaceSystemCrew:
67
 
68
  def create_tasks(self, space_system_description: str) -> List[Task]:
69
  architect_task = Task(
70
- description=f"""Analyze and refine the provided space system concept, ensuring:
71
  1. Logical consistency and feasibility
72
  2. Integration with existing space infrastructure
73
  3. Improved clarity and technical accuracy""",
@@ -131,9 +131,13 @@ class SpaceSystemCrew:
131
  yield messages
132
  await asyncio.sleep(0.1)
133
 
134
- self.final_refined_text = "\n\n".join([msg["content"] for msg in self.message_queue.get_messages() if msg["role"] == "assistant"])
135
- print("Final Refined Space System Design:")
136
- print(self.final_refined_text)
 
 
 
 
137
 
138
  except Exception as e:
139
  yield [{
 
40
 
41
  self.system_architect = Agent(
42
  role="System Architect",
43
+ goal="Analyze and refine the space system concept based on the provided description",
44
  backstory="Expert in space system design, ensuring logical consistency and feasibility",
45
  allow_delegation=False,
46
  verbose=True,
 
49
 
50
  self.mechanical_engineer = Agent(
51
  role="Mechanical Engineer",
52
+ goal="Refine structural and propulsion mechanisms based on the provided description",
53
  backstory="Specialist in high-velocity launch systems and orbital stabilization",
54
  allow_delegation=False,
55
  verbose=True,
 
58
 
59
  self.aerospace_manager = Agent(
60
  role="Aerospace Mission Manager",
61
+ goal="Ensure mission feasibility and refine execution details based on the provided description",
62
  backstory="Oversees project feasibility, mission planning, and ensures integration with existing aerospace infrastructure",
63
  allow_delegation=False,
64
  verbose=True,
 
67
 
68
  def create_tasks(self, space_system_description: str) -> List[Task]:
69
  architect_task = Task(
70
+ description="""Analyze and refine the provided space system concept, ensuring:
71
  1. Logical consistency and feasibility
72
  2. Integration with existing space infrastructure
73
  3. Improved clarity and technical accuracy""",
 
131
  yield messages
132
  await asyncio.sleep(0.1)
133
 
134
+ refined_messages = [msg["content"] for msg in self.message_queue.get_messages() if msg["role"] == "assistant"]
135
+ if refined_messages:
136
+ self.final_refined_text = "\n\n".join(refined_messages)
137
+ print("Final Refined Space System Design:")
138
+ print(self.final_refined_text)
139
+ else:
140
+ print("No refined text available.")
141
 
142
  except Exception as e:
143
  yield [{