mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
docs: add section explaining how to run a Crew from CrewBase
This commit is contained in:
@@ -117,6 +117,12 @@ class YourCrewName:
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
How to run the above code:
|
||||||
|
|
||||||
|
```python code
|
||||||
|
YourCrewName().crew().kickoff(inputs={"any": "input here"})
|
||||||
|
```
|
||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
Tasks will be executed in the order they are defined.
|
Tasks will be executed in the order they are defined.
|
||||||
</Note>
|
</Note>
|
||||||
@@ -184,6 +190,11 @@ class YourCrewName:
|
|||||||
verbose=True
|
verbose=True
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
How to run the above code:
|
||||||
|
|
||||||
|
```python code
|
||||||
|
YourCrewName().crew().kickoff(inputs={})
|
||||||
|
```
|
||||||
|
|
||||||
In this example:
|
In this example:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user