Created
July 5, 2024 05:31
-
-
Save elijahbenizzy/168d8782be7d87b3a6e00470bd453e56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
action, streaming_container = await app.astream_result( | |
halt_after=["generate_code", "unsafe_response", ...], # terminal actions | |
inputs={ | |
"prompt": "Please generate a limerick about Alexander Hamilton and Aaron Burr" | |
} | |
) | |
async for item in streaming_container: | |
print(item['delta'], end="") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment