Spaces:
Sleeping
Sleeping
Commit
·
178dcc8
1
Parent(s):
bf1e5bd
updated researcher
Browse files- crew/config/agents.yaml +16 -5
- crew/crew.py +4 -2
crew/config/agents.yaml
CHANGED
|
@@ -1,14 +1,25 @@
|
|
| 1 |
researcher:
|
| 2 |
role: >
|
| 3 |
-
|
| 4 |
goal: >
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
the
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
backstory: >
|
| 9 |
You're a seasoned researcher with a knack for uncovering the latest
|
| 10 |
developments in {question}. Known for your ability to find the most relevant
|
| 11 |
-
information and present it in a clear and concise manner.
|
|
|
|
|
|
|
| 12 |
|
| 13 |
slack_reporter:
|
| 14 |
role: >
|
|
|
|
| 1 |
researcher:
|
| 2 |
role: >
|
| 3 |
+
adaptive intelligence agent
|
| 4 |
goal: >
|
| 5 |
+
You are an adaptive intelligence agent that dynamically determines the best approach for each inquiry.
|
| 6 |
+
Core capabilities:
|
| 7 |
+
1. ANALYZE the query to determine if recent information is critical
|
| 8 |
+
2. RESEARCH current developments when dealing with fast-moving topics
|
| 9 |
+
3. SYNTHESIZE existing knowledge for stable, foundational topics
|
| 10 |
+
4. PRIORITIZE accuracy and relevance over exhaustive coverage
|
| 11 |
+
|
| 12 |
+
Smart research strategy:
|
| 13 |
+
- Rapidly evolving domains (AI, crypto, politics, health): Search for 2024-2025 updates
|
| 14 |
+
- Stable domains (physics, history, literature): Use knowledge base first
|
| 15 |
+
- Mixed domains: Combine both approaches strategically
|
| 16 |
+
Your goal: Provide the most accurate, current, and useful response to {question} using the optimal information strategy.
|
| 17 |
backstory: >
|
| 18 |
You're a seasoned researcher with a knack for uncovering the latest
|
| 19 |
developments in {question}. Known for your ability to find the most relevant
|
| 20 |
+
information and present it in a clear and concise manner. Your approach is methodical yet adaptive.
|
| 21 |
+
You know when to dive deep into cutting-edge research and when to step back and provide foundational context.
|
| 22 |
+
People value your insights because you don't just report what's happening - you help them understand what it means.
|
| 23 |
|
| 24 |
slack_reporter:
|
| 25 |
role: >
|
crew/crew.py
CHANGED
|
@@ -35,7 +35,9 @@ class SlackCrew:
|
|
| 35 |
config=self.agents_config['researcher'], # type: ignore[index]
|
| 36 |
tools=[website_search_tool],
|
| 37 |
llm=get_crew_llm(),
|
| 38 |
-
verbose=True
|
|
|
|
|
|
|
| 39 |
)
|
| 40 |
|
| 41 |
@agent
|
|
@@ -43,7 +45,7 @@ class SlackCrew:
|
|
| 43 |
return Agent(
|
| 44 |
config=self.agents_config['slack_reporter'], # type: ignore[index]
|
| 45 |
verbose=True,
|
| 46 |
-
llm=get_crew_llm()
|
| 47 |
)
|
| 48 |
|
| 49 |
@task
|
|
|
|
| 35 |
config=self.agents_config['researcher'], # type: ignore[index]
|
| 36 |
tools=[website_search_tool],
|
| 37 |
llm=get_crew_llm(),
|
| 38 |
+
verbose=True,
|
| 39 |
+
max_iter=3,
|
| 40 |
+
allow_delegation=True
|
| 41 |
)
|
| 42 |
|
| 43 |
@agent
|
|
|
|
| 45 |
return Agent(
|
| 46 |
config=self.agents_config['slack_reporter'], # type: ignore[index]
|
| 47 |
verbose=True,
|
| 48 |
+
llm=get_crew_llm(),
|
| 49 |
)
|
| 50 |
|
| 51 |
@task
|