Skip to content

Releases: run-llama/llama_deploy

v0.3.5

27 Nov 07:51
59ca6ce
Compare
Choose a tag to compare

What's Changed

New Features 🎉

New Contributors

Full Changelog: v0.3.4...v0.3.5

v0.3.4

25 Nov 16:52
8c3476e
Compare
Choose a tag to compare
v0.3.4

v0.3.3

25 Nov 15:57
fe67e55
Compare
Choose a tag to compare

What's Changed

New Features 🎉

New Contributors

Full Changelog: v0.3.2...v0.3.3

v0.3.2

25 Nov 03:43
e695f53
Compare
Choose a tag to compare

What's Changed

New Features 🎉

New Contributors

Full Changelog: v0.3.1...v0.3.2

v0.3.1

21 Nov 18:45
86cb52b
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Full Changelog: v0.3.0...v0.3.1

v0.3.0

15 Nov 16:24
6616c2d
Compare
Choose a tag to compare

What's Changed

New Features 🎉

  • feat: add apiserver support to Python SDK by @masci in #327
  • refact: make collections in apiserver models lazy by @masci in #343
  • chore: deprecate old clients in favor of Client by @masci in #352
  • feat: make the kafka topic configurable by @masci in #353
  • feat: make message_type configurable in Control Plane by @masci in #356
  • refact: Make topic explicit in message queue API by @masci in #358
  • refact: Use the Python SDK in the CLI implementation by @masci in #365

Bug Fixes 🐛

  • fix: fix typing for wrapped async methods by @masci in #344

Documentation 📚

Full Changelog: v0.2.4...v0.3.0

v0.2.4

17 Oct 19:07
719d62f
Compare
Choose a tag to compare
v0.2.4

v0.2.3

12 Oct 22:08
1b209e6
Compare
Choose a tag to compare
v0.2.3

v0.2.1

08 Oct 15:44
4087c10
Compare
Choose a tag to compare
v0.2.1

v0.2.0

24 Sep 19:42
4db92a7
Compare
Choose a tag to compare

v0.2.0 is out now, with the main improvement being the addition of streaming support!

Now, if you have a workflow that writes to the event stream like:

class ProgressEvent(Event):
    progress: str


# create a dummy workflow
class MyWorkflow(Workflow):
    @step()
    async def run_step(self, ctx: Context, ev: StartEvent) -> StopEvent:
        # Your workflow logic here
        arg1 = str(ev.get("arg1", ""))
        result = arg1 + "_result"

        # stream events as steps run
        ctx.write_event_to_stream(
            ProgressEvent(progress="I am doing something!")
        )

        return StopEvent(result=result)

You can stream the events using the client

# create a session
session = client.create_session()

# kick off run
task_id = session.run_nowait("streaming_workflow", arg1="hello_world")

# stream events -- the will yield a dict representing each event
for event in session.get_task_result_stream(task_id):
    print(event)

# get final result
result = session.get_task_result(task_id)
print(result)
# prints 'hello_world_result'