Skip to content

Instantly share code, notes, and snippets.

@neelabalan
Created February 24, 2024 05:21
Show Gist options
  • Save neelabalan/50e00667633175024fe3780a58506c4d to your computer and use it in GitHub Desktop.
Save neelabalan/50e00667633175024fe3780a58506c4d to your computer and use it in GitHub Desktop.
stream tokens
for token in my_agent.stream({"input": query, "chat_history": chat_history}):
print(token, end="", flush=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment