You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
I'm new to CrewAI, and I juste generated a project with CrewAI CLI.
And I'm trying to pass the result of the first agent's task, to another agent's input unsuccessfully.
Here is my crew.py file
fromcrewaiimportAgent, Crew, Process, Taskfromcrewai.projectimportCrewBase, agent, crew, task@CrewBaseclassRefinaCrew():
"""Refina crew"""agents_config='config/agents.yaml'tasks_config='config/tasks.yaml'@agentdefternary_developer(self) ->Agent:
returnAgent(
config=self.agents_config['ternary_developer'],
verbose=True
)
@agentdefreviewer_developer(self) ->Agent:
returnAgent(
config=self.agents_config['reviewer_developer'],
verbose=True
)
@taskdeftransform_ugly_ternary(self) ->Task:
returnTask(
config=self.tasks_config['transform_ugly_ternary'],
)
@taskdefreview_code_quality(self) ->Task:
returnTask(
config=self.tasks_config['review_code_quality'],
agent=self.reviewer_developer()
)
@crewdefcrew(self) ->Crew:
"""Creates the Refina crew"""returnCrew(
agents=self.agents,
tasks=self.tasks,
process=Process.sequential,
verbose=True,
# process=Process.hierarchical, # In case you wanna use that instead https://docs.crewai.com/how-to/Hierarchical/
)
Thank you !
The text was updated successfully, but these errors were encountered:
Hey @thanhtran0302 result from one task is automatically passed into the next, but you can force specific context to be passed by using the context attribute.
Hi everyone,
I'm new to CrewAI, and I juste generated a project with CrewAI CLI.
And I'm trying to pass the result of the first agent's task, to another agent's input unsuccessfully.
Here is my crew.py file
Thank you !
The text was updated successfully, but these errors were encountered: