Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: hierarchical #529

Open
anuraglahon16 opened this issue Apr 29, 2024 · 0 comments
Open

AttributeError: hierarchical #529

anuraglahon16 opened this issue Apr 29, 2024 · 0 comments

Comments

@anuraglahon16
Copy link

ef StartCrew(prompt):

task1 = Task(
  description=f"""Write a blog post of {prompt}. """,
  agent=writer,
  expected_output="an article under 100 words."
)

task2 = Task(
  description=("list review comments for improvement from the entire content of blog post to make it more viral on social media."
                "Make sure to check with a human if your comment is good before finalizing your answer."
            ),
  agent=reviewer,
  expected_output="Builtin points about where need to be improved.",
  human_input=True,
)
# Establishing the crew with a hierarchical process
project_crew = Crew(
    tasks=[task1, task2],  # Tasks to be delegated and executed under the manager's supervision
    agents=[writer, reviewer],
    manager_llm=llm,
    process=Process.hierarchical  # Specifies the hierarchical management approach
)

result = project_crew.kickoff()

File "/Users/anuraglahon/opt/anaconda3/envs/my_env/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/Users/anuraglahon/opt/anaconda3/envs/my_env/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/Users/anuraglahon/Documents/feedback/crewai_panel.py", line 43, in initiate_chat
StartCrew(message)
File "/Users/anuraglahon/Documents/feedback/crewai_panel.py", line 124, in StartCrew
process=Process.hierarchical # Specifies the hierarchical management approach
^^^^^^^^^^^^^^^^^^^^
File "/Users/anuraglahon/opt/anaconda3/envs/my_env/lib/python3.11/enum.py", line 784, in getattr
raise AttributeError(name) from None
AttributeError: hierarchical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant