Skip to content

Commit 2eb55f9

Browse files
Merge pull request #82 from MervinPraison/develop
Develop
2 parents 5693287 + bb49efe commit 2eb55f9

File tree

8 files changed

+780
-244
lines changed

8 files changed

+780
-244
lines changed

.github/workflows/unittest.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run specific unittest
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.11
17+
18+
- name: Install Poetry
19+
run: |
20+
curl -sSL https://install.python-poetry.org | python3 -
21+
export PATH="$HOME/.local/bin:$PATH"
22+
23+
- name: Install dependencies
24+
run: |
25+
poetry install
26+
poetry run python -m pip install duckduckgo_search
27+
28+
- name: Set environment variables
29+
run: |
30+
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> $GITHUB_ENV
31+
echo "OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE }}" >> $GITHUB_ENV
32+
echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME }}" >> $GITHUB_ENV
33+
34+
- name: Run specific unittest
35+
run: |
36+
poetry run python -m unittest tests.test.TestExamples

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

agents.yaml

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,40 @@
11
framework: autogen
22
topic: create movie script about cat in mars
33
roles:
4-
mars_researcher:
5-
backstory: Astronomy enthusiast with a passion for Mars exploration, providing
6-
research for Mars-inspired stories.
7-
goal: Gather information about Mars for storytelling
8-
role: Mars Researcher
4+
researcher:
5+
backstory: Skilled in research, with a focus on gathering accurate and relevant
6+
information.
7+
goal: Gather information about Mars and cats
8+
role: Researcher
99
tasks:
10-
mars_research:
11-
description: Research Mars facts, geography, and climate to inform the script's
12-
setting.
13-
expected_output: Document with Mars facts, including geography and climate
14-
details.
10+
research_task:
11+
description: Research about Mars, its environment, and the feasibility of
12+
a cat being on Mars. Also, research about cat behavior and characteristics.
13+
expected_output: Document with research findings on Mars and cats.
1514
tools:
1615
- ''
17-
cat_script-developer:
18-
backstory: Creative writer with experience in developing scripts for unique settings,
19-
with a focus on character development.
20-
goal: Develop a script concept for a cat in Mars
21-
role: Cat Script Developer
16+
narrative_designer:
17+
backstory: Skilled in narrative development, with a focus on creating engaging
18+
stories.
19+
goal: Create a story concept for a movie about a cat in Mars
20+
role: Narrative Designer
2221
tasks:
23-
script_concept_development:
24-
description: Develop a script concept for a cat's adventures on Mars, incorporating
25-
Mars research.
26-
expected_output: Script outline with character arcs, plot points, and scene
27-
descriptions.
22+
story_concept_development:
23+
description: Use the research findings to craft a unique story concept for
24+
a movie about a cat in Mars.
25+
expected_output: Document with narrative arcs, character bios, and settings.
2826
tools:
2927
- ''
3028
scriptwriter:
31-
backstory: Experienced scriptwriter with a talent for crafting engaging dialogue
32-
and scenes.
29+
backstory: Expert in dialogue and script structure, translating concepts into
30+
scripts.
3331
goal: Write a movie script about a cat in Mars
3432
role: Scriptwriter
3533
tasks:
3634
scriptwriting_task:
37-
description: Write a production-ready script based on the script concept,
38-
incorporating research and outline.
39-
expected_output: Final movie script with dialogue, scene descriptions, and
40-
character details.
35+
description: Turn the story concept into a production-ready movie script,
36+
including dialogue and scene details.
37+
expected_output: Final movie script with dialogue and scene details.
4138
tools:
4239
- ''
4340
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.46 gunicorn markdown\n&#34;)
113+
file.write(&#34;RUN pip install flask praisonai==0.0.47 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

praisonai/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def create_dockerfile(self):
5656
file.write("FROM python:3.11-slim\n")
5757
file.write("WORKDIR /app\n")
5858
file.write("COPY . .\n")
59-
file.write("RUN pip install flask praisonai==0.0.46 gunicorn markdown\n")
59+
file.write("RUN pip install flask praisonai==0.0.47 gunicorn markdown\n")
6060
file.write("EXPOSE 8080\n")
6161
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
6262

0 commit comments

Comments
 (0)