Add sdk.md intro, update CHANGELOG for branch() change
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
- `CustomToolContext` provides `sessionManager: ReadonlySessionManager`, `modelRegistry`, and `model`
|
||||
- `dispose()` method removed - use `onSession` with `reason: "shutdown"` for cleanup
|
||||
- `CustomToolFactory` return type changed to `CustomTool<any, any>` for type compatibility
|
||||
- **AgentSession.branch()**: Now takes `entryId: string` instead of `entryIndex: number`. `SessionBeforeBranchEvent.entryId` replaces `entryIndex`. `getUserMessagesForBranching()` returns `{ entryId, text }` instead of `{ entryIndex, text }`.
|
||||
- **Renamed exports**:
|
||||
- `messageTransformer` → `convertToLlm`
|
||||
- `SessionContext` alias `LoadedSession` removed (use `SessionContext` directly)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
> pi can help you use the SDK. Ask it to build an integration for your use case.
|
||||
|
||||
# SDK
|
||||
|
||||
The SDK provides programmatic access to pi's agent capabilities. Use it to embed pi in other applications, build custom interfaces, or integrate with automated workflows.
|
||||
|
||||
Reference in New Issue
Block a user