Skip to content

Commit 36ece39

Browse files
Merge pull request #65 from MervinPraison/develop
v0.0.38 Adding Ability for Each Agent to use Different LLM - CrewAI
2 parents 9007b29 + 7a18c4c commit 36ece39

File tree

16 files changed

+936
-242
lines changed

16 files changed

+936
-242
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,10 @@ docs/_build/.buildinfo
3838
docs/_build/.buildinfo/*
3939
docs/_build/.buildinfo/.buildinfo
4040

41+
praisonai/doc
42+
4143
# agentops
42-
trained_agents_data.pkl
44+
trained_agents_data.pkl
45+
46+
# crewAI
47+
crewAI

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.11-slim
22
WORKDIR /app
33
COPY . .
4-
RUN pip install flask praisonai==0.0.37 gunicorn markdown
4+
RUN pip install flask praisonai==0.0.38 gunicorn markdown
55
EXPOSE 8080
66
CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,6 @@ OPENAI_API_KEY=your-mistral-api-key
329329
- Submit a pull request via GitHub's web interface.
330330
- Await feedback from project maintainers.
331331

332+
## Star History
333+
334+
[![Star History Chart](https://api.star-history.com/svg?repos=MervinPraison/PraisonAI&type=Date)](https://docs.praison.ai)

agents-advanced.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
framework: crewai
2+
topic: research about the causes of lung disease
3+
roles:
4+
research_analyst:
5+
backstory: Experienced in analyzing scientific data related to respiratory health.
6+
goal: Analyze data on lung diseases
7+
role: Research Analyst
8+
llm:
9+
model: "groq/llama3-70b-8192"
10+
function_calling_llm:
11+
model: "google/gemini-1.5-flash-001"
12+
allow_delegation: False
13+
max_execution_time:
14+
max_iter:
15+
max_rpm:
16+
verbose: True
17+
cache: True
18+
system_template:
19+
prompt_template:
20+
response_template:
21+
tasks:
22+
data_analysis:
23+
description: Gather and analyze data on the causes and risk factors of lung
24+
diseases.
25+
expected_output: Report detailing key findings on lung disease causes.
26+
tools:
27+
- 'InternetSearchTool'
28+
medical_writer:
29+
backstory: Skilled in translating complex medical information into accessible
30+
content.
31+
goal: Compile comprehensive content on lung disease causes
32+
role: Medical Writer
33+
llm:
34+
model: "anthropic/claude-3-haiku-20240307"
35+
function_calling_llm:
36+
model: "openai/gpt-4o"
37+
tasks:
38+
content_creation:
39+
description: Create detailed content summarizing the research findings on
40+
lung disease causes.
41+
expected_output: Document outlining various causes and risk factors of lung
42+
diseases.
43+
tools:
44+
- ''
45+
editor:
46+
backstory: Proficient in editing medical content for accuracy and clarity.
47+
goal: Review and refine content on lung disease causes
48+
role: Editor
49+
llm:
50+
model: "cohere/command-r"
51+
tasks:
52+
content_review:
53+
description: Edit and refine the compiled content on lung disease causes for
54+
accuracy and coherence.
55+
expected_output: Finalized document on lung disease causes ready for dissemination.
56+
tools:
57+
- ''
58+
dependencies: []

agents.yaml

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,39 @@
11
framework: autogen
2-
topic: create movie script about cat in mars
2+
topic: research about the causes of lung disease
33
roles:
4-
researcher:
5-
backstory: Skilled in finding and organizing information, with a focus on research
6-
efficiency.
7-
goal: Gather information about Mars and cats
8-
role: Researcher
4+
research_analyst:
5+
backstory: Experienced in analyzing scientific data related to respiratory health.
6+
goal: Analyze data on lung diseases
7+
role: Research Analyst
98
tasks:
10-
gather_research:
11-
description: Research and gather information about Mars, its environment,
12-
and cats, including their behavior and characteristics.
13-
expected_output: Document with research findings, including interesting facts
14-
and information.
9+
data_analysis:
10+
description: Gather and analyze data on the causes and risk factors of lung
11+
diseases.
12+
expected_output: Report detailing key findings on lung disease causes.
1513
tools:
16-
- ''
17-
world_builder:
18-
backstory: Expert in building rich, immersive worlds, with a focus on environment
19-
and setting.
20-
goal: Create a rich and immersive environment for the movie script
21-
role: World Builder
14+
- 'InternetSearchTool'
15+
medical_writer:
16+
backstory: Skilled in translating complex medical information into accessible
17+
content.
18+
goal: Compile comprehensive content on lung disease causes
19+
role: Medical Writer
2220
tasks:
23-
world_building:
24-
description: Using the research, create a rich and immersive environment for
25-
the movie script, including Martian landscapes and cat habitats.
26-
expected_output: Document with world-building details, including settings,
27-
landscapes, and habitats.
21+
content_creation:
22+
description: Create detailed content summarizing the research findings on
23+
lung disease causes.
24+
expected_output: Document outlining various causes and risk factors of lung
25+
diseases.
2826
tools:
2927
- ''
30-
scriptwriter:
31-
backstory: Expert in dialogue and script structure, translating concepts into
32-
scripts.
33-
goal: Write a movie script about a cat in Mars
34-
role: Scriptwriter
28+
editor:
29+
backstory: Proficient in editing medical content for accuracy and clarity.
30+
goal: Review and refine content on lung disease causes
31+
role: Editor
3532
tasks:
36-
scriptwriting_task:
37-
description: Using the research and world-building details, write a movie
38-
script about a cat in Mars, including dialogue and scenes.
39-
expected_output: Production-ready script with dialogue and scene details.
33+
content_review:
34+
description: Edit and refine the compiled content on lung disease causes for
35+
accuracy and coherence.
36+
expected_output: Finalized document on lung disease causes ready for dissemination.
4037
tools:
4138
- ''
42-
dependencies: []
39+
dependencies: []

docs/api/praisonai/deploy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h2 id="raises">Raises</h2>
110110
file.write(&#34;FROM python:3.11-slim\n&#34;)
111111
file.write(&#34;WORKDIR /app\n&#34;)
112112
file.write(&#34;COPY . .\n&#34;)
113-
file.write(&#34;RUN pip install flask praisonai==0.0.37 gunicorn markdown\n&#34;)
113+
file.write(&#34;RUN pip install flask praisonai==0.0.38 gunicorn markdown\n&#34;)
114114
file.write(&#34;EXPOSE 8080\n&#34;)
115115
file.write(&#39;CMD [&#34;gunicorn&#34;, &#34;-b&#34;, &#34;0.0.0.0:8080&#34;, &#34;api:app&#34;]\n&#39;)
116116

0 commit comments

Comments
 (0)