Skip to content

Commit

Permalink
updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomdmoura committed Jun 22, 2024
1 parent 9c44fd8 commit c4d76cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/core-concepts/Crews.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,19 @@ result = my_crew.kickoff()
print(result)

# Example of using kickoff_for_each
results = my_crew.kickoff_for_each()
inputs_array = [{'topic': 'AI in healthcare'}, {'topic': 'AI in finance'}]
results = my_crew.kickoff_for_each(inputs=inputs_array)
for result in results:
print(result)

# Example of using kickoff_async
async_result = my_crew.kickoff_async()
inputs = {'topic': 'AI in healthcare'}
async_result = my_crew.kickoff_async(inputs=inputs)
print(async_result)

# Example of using kickoff_for_each_async
async_results = my_crew.kickoff_for_each_async()
inputs_array = [{'topic': 'AI in healthcare'}, {'topic': 'AI in finance'}]
async_results = my_crew.kickoff_for_each_async(inputs=inputs_array)
for async_result in async_results:
print(async_result)
```
Expand Down

0 comments on commit c4d76cd

Please sign in to comment.