Skip to content

v3.4.0.3

Compare
Choose a tag to compare
@Maplemx Maplemx released this 24 Oct 04:33
· 33 commits to main since this release
e81dd37

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.

Full Changelog: Maplemx/Agently@v3.4.0.2...v3.4.0.3