docs(coding-agent): document async extension factories closes #3469
This commit is contained in:
@@ -335,6 +335,8 @@ export default function (pi: ExtensionAPI) {
|
||||
}
|
||||
```
|
||||
|
||||
The default export can also be `async`. pi waits for async extension factories before startup continues, which is useful for one-time initialization such as fetching remote model lists before calling `pi.registerProvider()`.
|
||||
|
||||
**What's possible:**
|
||||
- Custom tools (or replace built-in tools entirely)
|
||||
- Sub-agents and plan mode
|
||||
|
||||
Reference in New Issue
Block a user