Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add half-streaming agents #274

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

SeseMueller
Copy link

Because I need it for a personal project of mine, I implemented a half-baked streaming implementation for agents.

Currently, no intermeadiate steps are streamed and only the final output is output, but it's a step in the right direction.

It's not very tested, I'm afraid.
I also had to slightly change the signature for the stream method of the Chain trait to accomodate the changes in lifetimes; a stream may now no longer outlive the Chain it is called on because else its memory would be a nightmare to handle.

Starts work on #1.
Starts work on #237.

I'll maybe work on the intermeadiate steps tomorrow.
Feedback and requests welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant