Skip to content

Commit d3d930f

Browse files
authored
Update main.py
streamlined crewai imports to a single line Removed cache attribute until understood
1 parent 4d68e6f commit d3d930f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

main.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121

2222
# Import required libraries - make sure the crewai and langchain_community packages are installed via pip
2323
import os
24-
from crewai import Agent
25-
from crewai import Task
26-
from crewai import Crew, Process
24+
from crewai import Agent, Crew, Process, TAsk
2725

2826
os.environ['OPENAI_API_BASE']='http://localhost:11434/v1'
2927
os.environ['OPENAI_API_KEY']='sk-111111111111111111111111111111111111111111111111'
@@ -45,7 +43,6 @@ def write_result_to_file(result):
4543
verbose=True, # This is a flag that determines if the agent will print more output to the console
4644
step_callback=write_result_to_file, # This is a callback function that will be called after each iteration of the agent
4745
Allow_Delegation=False, # This is a flag that determines if the agent can delegate the task to another agent. As we are only using one agent, we set this to False
48-
cache=False, # Indicates if the agent should use a cache for tool usage. A tool is not used in this example, so we set this to False
4946
)
5047

5148
# Create the task

0 commit comments

Comments
 (0)