Skip to content

Commit 4575575

Browse files
Merge pull request #43 from MervinPraison/develop
v0.0.22
2 parents 3cc960a + c056ae0 commit 4575575

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+6379
-1005
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
OPENAI_MODEL_NAME="gpt-4-turbo-preview"
1+
OPENAI_MODEL_NAME="gpt-4o"
22
OPENAI_API_KEY="Enter your API key"
33
OPENAI_API_BASE="https://api.openai.com/v1"

.github/workflows/python-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
python -m pip install --upgrade pip
3030
python -m pip install flake8 pytest
3131
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32-
- name: Lint with flake8
33-
run: |
34-
# stop the build if there are Python syntax errors or undefined names
35-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32+
# - name: Lint with flake8
33+
# run: |
34+
# # stop the build if there are Python syntax errors or undefined names
35+
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36+
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37+
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3838
# - name: Test with pytest
3939
# run: |
4040
# pytest

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ db
1717
praisonai_prompt.txt
1818
watch.sh
1919
docs.sh
20+
other
21+
22+
.chainlit
23+
24+
site
2025
# Ignore Sphinx build directory
2126
docs/_build/
2227
docs/source/

.readthedocs.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Read the Docs configuration file for Sphinx projects
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
23
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
34

45
# Required
@@ -9,27 +10,14 @@ build:
910
os: ubuntu-22.04
1011
tools:
1112
python: "3.12"
12-
# You can also specify other tool versions:
13-
# nodejs: "20"
14-
# rust: "1.70"
15-
# golang: "1.20"
13+
jobs:
14+
post_install:
15+
- bash docs/generate_docs.sh
1616

17-
# Build documentation in the "docs/" directory with Sphinx
18-
sphinx:
19-
configuration: docs/conf.py
20-
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21-
# builder: "dirhtml"
22-
# Fail on all warnings to avoid broken references
23-
# fail_on_warning: true
17+
mkdocs:
18+
configuration: mkdocs.yml
19+
fail_on_warning: true
2420

25-
# Optionally build your docs in additional formats such as PDF and ePub
26-
# formats:
27-
# - pdf
28-
# - epub
29-
30-
# Optional but recommended, declare the Python requirements required
31-
# to build your documentation
32-
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33-
# python:
34-
# install:
35-
# - requirements: docs/requirements.txt
21+
python:
22+
install:
23+
- requirements: docs/requirements.txt

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.21 gunicorn markdown
4+
RUN pip install flask praisonai==0.0.22 gunicorn markdown
55
EXPOSE 8080
66
CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@ if __name__ == "__main__":
220220
auto()
221221
```
222222
223+
## Include CrewAI Tools
224+
225+
```
226+
pip install "praisonai[crewai-tools]"
227+
```
228+
223229
## Deploy
224230

225231
```bash
@@ -228,7 +234,7 @@ gcloud services enable run.googleapis.com
228234
gcloud services enable containerregistry.googleapis.com
229235
gcloud services enable cloudbuild.googleapis.com
230236

231-
export OPENAI_MODEL_NAME="gpt-4-turbo-preview"
237+
export OPENAI_MODEL_NAME="gpt-4o"
232238
export OPENAI_API_KEY="Enter your API key"
233239
export OPENAI_API_BASE="https://api.openai.com/v1"
234240

@@ -281,4 +287,5 @@ OPENAI_API_KEY=your-mistral-api-key
281287
- Make changes and commit: `git commit -am "Add some feature"`
282288
- Push to your fork: `git push origin new-feature`
283289
- Submit a pull request via GitHub's web interface.
284-
- Await feedback from project maintainers.
290+
- Await feedback from project maintainers.
291+

agents.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
framework: crewai
1+
framework: autogen
22
topic: research about the causes of lung disease
33
roles:
44
research_analyst:
@@ -11,7 +11,7 @@ roles:
1111
diseases.
1212
expected_output: Report detailing key findings on lung disease causes.
1313
tools:
14-
- 'PubmedQueryRun'
14+
- 'InternetSearchTool'
1515
medical_writer:
1616
backstory: Skilled in translating complex medical information into accessible
1717
content.

docs/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs.praison.ai

docs/agents_playbook.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Agents Playbook
2+
3+
## Simple Playbook Example
4+
5+
```yaml
6+
framework: crewai
7+
topic: Artificial Intelligence
8+
roles:
9+
screenwriter:
10+
backstory: 'Skilled in crafting scripts with engaging dialogue about {topic}.'
11+
goal: Create scripts from concepts.
12+
role: Screenwriter
13+
tasks:
14+
scriptwriting_task:
15+
description: 'Develop scripts with compelling characters and dialogue about {topic}.'
16+
expected_output: 'Complete script ready for production.'
17+
```
18+
19+
## Detailed Playbook Example
20+
21+
```yaml
22+
framework: crewai
23+
topic: Artificial Intelligence
24+
roles:
25+
movie_concept_creator:
26+
backstory: 'Creative thinker with a deep understanding of cinematic storytelling,
27+
capable of using AI-generated storylines to create unique and compelling movie
28+
ideas.'
29+
goal: Generate engaging movie concepts using AI storylines
30+
role: Movie Concept Creator
31+
tasks:
32+
movie_concept_development:
33+
description: 'Develop movie concepts from AI-generated storylines, ensuring
34+
they are engaging and have strong narrative arcs.'
35+
expected_output: 'Well-structured movie concept document with character
36+
bios, settings, and plot outlines.'
37+
screenwriter:
38+
backstory: 'Expert in writing engaging dialogue and script structure, able to
39+
turn movie concepts into production-ready scripts.'
40+
goal: Write compelling scripts based on movie concepts
41+
role: Screenwriter
42+
tasks:
43+
scriptwriting_task:
44+
description: 'Turn movie concepts into polished scripts with well-developed
45+
characters, strong dialogue, and effective scene transitions.'
46+
expected_output: 'Production-ready script with a beginning, middle, and
47+
end, along with character development and engaging dialogues.'
48+
editor:
49+
backstory: 'Adept at identifying inconsistencies, improving language usage,
50+
and maintaining the overall flow of the script.'
51+
goal: Refine the scripts and ensure continuity of the movie storyline
52+
role: Editor
53+
tasks:
54+
editing_task:
55+
description: 'Review, edit, and refine the scripts to ensure they are cohesive
56+
and follow a well-structured narrative.'
57+
expected_output: 'A polished final draft of the script with no inconsistencies,
58+
strong character development, and effective dialogue.'
59+
dependencies: []
60+
```

docs/api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# API Reference
2+
::: praisonai
3+
::: praisonai.auto
4+
::: praisonai.agents_generator
5+
::: praisonai.cli
6+
::: praisonai.deploy

0 commit comments

Comments
 (0)