griptape icon indicating copy to clipboard operation
griptape copied to clipboard

Prompt Drivers Crash When Streaming Without A Structure

Open collindutter opened this issue 2 years ago • 0 comments

Describe the bug Prompt Drivers require structure to be set in order to publish CompletionChunkEvents.

To Reproduce Steps to reproduce the behavior:

  1. Create a Prompt Driver without a Structure.
  2. Try streaming.
  3. 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.

collindutter avatar Feb 12 '24 17:02 collindutter