mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-09-20 10:03:37 +00:00
docs: correct kickoff path to AgentExecutor
agent.kickoff() uses AgentExecutor and returns LiteAgentOutput; it does not run through a LiteAgent class. Update Secure Agent Design and the Agents concept note accordingly. Co-authored-by: Rip&Tear <theCyberTech@users.noreply.github.com>
This commit is contained in:
@@ -638,9 +638,10 @@ asyncio.run(main())
|
||||
```
|
||||
|
||||
<Note>
|
||||
The `kickoff()` method uses a `LiteAgent` internally, which provides a simpler
|
||||
execution flow while preserving all of the agent's configuration (role, goal,
|
||||
backstory, tools, etc.).
|
||||
The `kickoff()` method uses an `AgentExecutor` directly (no Task or Crew),
|
||||
which provides a simpler execution flow while preserving all of the agent's
|
||||
configuration (role, goal, backstory, tools, etc.). It returns a
|
||||
`LiteAgentOutput`.
|
||||
</Note>
|
||||
|
||||
## Important Considerations and Best Practices
|
||||
|
||||
@@ -24,7 +24,7 @@ Use this guide whenever an agent touches user data, external content, or side-ef
|
||||
|
||||
### Single-agent `kickoff()`
|
||||
|
||||
`agent.kickoff(...)` runs through a LiteAgent — no Task and no Crew. Controls differ:
|
||||
`agent.kickoff(...)` runs through an `AgentExecutor` — no Task and no Crew. Controls differ:
|
||||
|
||||
| Still applies | Does **not** apply |
|
||||
| --- | --- |
|
||||
|
||||
Reference in New Issue
Block a user