update async doc

This commit is contained in:
zachary62 2025-02-16 14:28:44 -05:00
parent 84fbfdec3d
commit 52097651de
1 changed files with 3 additions and 6 deletions

View File

@ -9,14 +9,11 @@ nav_order: 5
**Async** Nodes implement `prep_async()`, `exec_async()`, `exec_fallback_async()`, and/or `post_async()`. This is useful for:
1. **prep_async()**
- For *fetching/reading data (files, APIs, DB)* in an I/O-friendly way.
1. **prep_async()**: For *fetching/reading data (files, APIs, DB)* in an I/O-friendly way.
2. **exec_async()**
- Typically used for async LLM calls.
2. **exec_async()**: Typically used for async LLM calls.
3. **post_async()**
- For *awaiting user feedback*, *coordinating across multi-agents* or any additional async steps after `exec_async()`.
3. **post_async()**: For *awaiting user feedback*, *coordinating across multi-agents* or any additional async steps after `exec_async()`.
**Note**: `AsyncNode` must be wrapped in `AsyncFlow`. `AsyncFlow` can also include regular (sync) nodes.