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

v3.4.0.3 updates #176

Merged
merged 3 commits into from
Oct 24, 2024
Merged

v3.4.0.3 updates #176

merged 3 commits into from
Oct 24, 2024

Conversation

Maplemx
Copy link
Owner

@Maplemx Maplemx commented Oct 24, 2024

New Feature:

  • ResponseGenerator: a better way to get streaming response generator from Agently AgenticRequest, try these codes down below to feel the better develop experience provided by Agently Realtime x ResponseGenerator:
generator = (
    agent
        .input("Generator 10 sentences")
        .output({
            "sentences": ([("str", )]),
        })
        .get_realtime_generator()
)

for item in generator:
    print(item["key"], item["delta"])

We also provide .get_complete_generator() for you to get all events (including response:delta_origin, response:done_origin with detail information) or .get_generator() to get classic event response:start, response:delta and response:done.

Updates:

  • Realtime mode will be automatically turn on when developers try to add an realtime event listener or use realtime generator, don't worry about forget to add .use_realtime() to your chain syntax anymore.
  • use settings to control use_realtime status to make this status better to be used in other agent components.

@Maplemx Maplemx merged commit e81dd37 into main Oct 24, 2024
1 check passed
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