- Added an interrupt controller to manage user interrupts during streaming operations. - Introduced methods for registering and unregistering contexts in a global registry to facilitate interrupt handling. - Enhanced the Assistant's Stream method to check for force interrupts and handle them appropriately. - Updated context creation to include unique IDs for better identification during interrupts. - Implemented logic for graceful and force interrupts, allowing for flexible response to user signals. |
||
|---|---|---|
| .. | ||
| adapters | ||
| handlers | ||
| providers | ||
| interfaces.go | ||
| llm.go | ||
| stream.go | ||