File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1+ OPENAI_API_KEY = " sk-1234"
2+ ANTHROPIC_API_KEY = " "
3+ OLLAMA = " "
4+ PROMPT_TOOLKIT_NO_CPR = 1
5+ CAI_STREAM = false
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ python3.12 -m venv cai_env
173173source 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
179179cai # first launch it can take up to 30 seconds
@@ -195,7 +195,7 @@ python3.12 -m venv cai_env
195195source 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
201201cai # first launch it can take up to 30 seconds
@@ -218,7 +218,7 @@ python3 -m venv cai_env
218218source 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
224224cai # first launch it can take up to 30 seconds
Original file line number Diff line number Diff line change 55
66support 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
99from cai .sdk .agents import Agent , OpenAIChatCompletionsModel # pylint: disable=import-error
1010from openai import AsyncOpenAI
1111from cai .util import load_prompt_template
1515
1616# Thought Process Agent for analysis and planning
1717thought_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)
You can’t perform that action at this time.
0 commit comments