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:
Cursor Agent
2026-08-12 00:54:39 +00:00
parent 112683b1a1
commit da28681f04
2 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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 |
| --- | --- |