griptape
griptape copied to clipboard
Prompt Drivers Crash When Streaming Without A Structure
- [x] I have read and agree to the contributing guidelines.
Describe the bug
Prompt Drivers require structure to be set in order to publish CompletionChunkEvents.
To Reproduce Steps to reproduce the behavior:
- Create a Prompt Driver without a Structure.
- Try streaming.
- Observe a crash here.
Expected behavior
Prompt Drivers should not depend on a Structure just to stream. Perhaps they should take in an event_listener: EventListener instead of a structure: Structure. If a Structure is the one using the Prompt Driver, it can provide an EventListener. Otherwise we can default one.
Screenshots N/A
Desktop (please complete the following information): N/A
Additional context Add any other context about the problem here.