Skip to content

Commit 607f62b

Browse files
authored
Merge pull request #170 from duel0/main
Fixed #163 + Fix Typo in Thought Agent
2 parents 9abb806 + 5cead02 commit 607f62b

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
OPENAI_API_KEY="sk-1234"
2+
ANTHROPIC_API_KEY=""
3+
OLLAMA=""
4+
PROMPT_TOOLKIT_NO_CPR=1
5+
CAI_STREAM=false

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ python3.12 -m venv cai_env
173173
source cai_env/bin/activate && pip install cai-framework
174174

175175
# Generate a .env file and set up with defaults
176-
echo -e 'OPENAI_API_KEY="sk-1234"\nANTHROPIC_API_KEY=""\nOLLAMA=""\nPROMPT_TOOLKIT_NO_CPR=1' > .env
176+
echo -e 'OPENAI_API_KEY="sk-1234"\nANTHROPIC_API_KEY=""\nOLLAMA=""\nPROMPT_TOOLKIT_NO_CPR=1\nCAI_STREAM=false' > .env
177177

178178
# Launch CAI
179179
cai # first launch it can take up to 30 seconds
@@ -195,7 +195,7 @@ python3.12 -m venv cai_env
195195
source cai_env/bin/activate && pip install cai-framework
196196

197197
# Generate a .env file and set up with defaults
198-
echo -e 'OPENAI_API_KEY="sk-1234"\nANTHROPIC_API_KEY=""\nOLLAMA=""\nPROMPT_TOOLKIT_NO_CPR=1' > .env
198+
echo -e 'OPENAI_API_KEY="sk-1234"\nANTHROPIC_API_KEY=""\nOLLAMA=""\nPROMPT_TOOLKIT_NO_CPR=1\nCAI_STREAM=false' > .env
199199

200200
# Launch CAI
201201
cai # first launch it can take up to 30 seconds
@@ -218,7 +218,7 @@ python3 -m venv cai_env
218218
source cai_env/bin/activate && pip install cai-framework
219219

220220
# Generate a .env file and set up with defaults
221-
echo -e 'OPENAI_API_KEY="sk-1234"\nANTHROPIC_API_KEY=""\nOLLAMA=""\nPROMPT_TOOLKIT_NO_CPR=1' > .env
221+
echo -e 'OPENAI_API_KEY="sk-1234"\nANTHROPIC_API_KEY=""\nOLLAMA=""\nPROMPT_TOOLKIT_NO_CPR=1\nCAI_STREAM=false' > .env
222222

223223
# Launch CAI
224224
cai # first launch it can take up to 30 seconds

src/cai/agents/thought.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
support meta agent may better @cai.sdk.agents.meta.reasoner_support
77
"""
8-
from cai.tools.misc.reasoning import thought
8+
from cai.tools.misc.reasoning import think
99
from cai.sdk.agents import Agent, OpenAIChatCompletionsModel # pylint: disable=import-error
1010
from openai import AsyncOpenAI
1111
from cai.util import load_prompt_template
@@ -15,13 +15,13 @@
1515

1616
# Thought Process Agent for analysis and planning
1717
thought_agent = Agent(
18-
name="ThoughAgent",
18+
name="ThoughtAgent",
1919
model=OpenAIChatCompletionsModel(
2020
model=os.getenv('CAI_MODEL', "qwen2.5:14b"),
2121
openai_client=AsyncOpenAI(),
2222
),
2323
description="""Agent focused on analyzing and planning the next steps
2424
in a security assessment or CTF challenge.""",
2525
instructions=thought_agent_system_prompt,
26-
tools=[thought],
26+
tools=[think],
2727
)

0 commit comments

Comments
 (0)