mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
updating docs
This commit is contained in:
@@ -138,16 +138,19 @@ result = my_crew.kickoff()
|
|||||||
print(result)
|
print(result)
|
||||||
|
|
||||||
# Example of using kickoff_for_each
|
# 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:
|
for result in results:
|
||||||
print(result)
|
print(result)
|
||||||
|
|
||||||
# Example of using kickoff_async
|
# 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)
|
print(async_result)
|
||||||
|
|
||||||
# Example of using kickoff_for_each_async
|
# 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:
|
for async_result in async_results:
|
||||||
print(async_result)
|
print(async_result)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user