Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Updates streaming documentation to include newest user-facing methods

elijahbenizzy0e81ffc24e7a
diff --git a/burr/core/action.py b/burr/core/action.py
index f9d09699..a2d771e1 100644
--- a/burr/core/action.py
+++ b/burr/core/action.py
@@ -601,6 +601,7 @@ class AsyncStreamingAction(Action, abc.ABC):
# TODO -- documentation for this
class StreamingResultContainer(Iterator[dict]):
"""Container for a streaming result. This allows you to:
+
1. Iterate over the result as it comes in
2. Get the final result/state at the end
diff --git a/docs/reference/actions.rst b/docs/reference/actions.rst
index 8afeea46..ce473ac8 100644
--- a/docs/reference/actions.rst
+++ b/docs/reference/actions.rst
@@ -35,6 +35,9 @@ Actions
.. autoclass:: burr.core.action.StreamingResultContainer
:members:
+.. autoclass:: burr.core.action.AsyncStreamingResultContainer
+ :members:
+
.. autoclass:: burr.core.action.streaming_action
:members: