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.

docs: fix the Graph API example on the applications page (#894)

Exceliusb75c01d861ec
diff --git a/docs/concepts/state-machine.rst b/docs/concepts/state-machine.rst
index 862a16fa..8f168fa0 100644
--- a/docs/concepts/state-machine.rst
+++ b/docs/concepts/state-machine.rst
@@ -172,7 +172,7 @@ in a web-server (create a graph once, application many times), import the graph
.. code-block:: python
- from burr.core import ApplicationBuilder, default, expr
+ from burr.core import ApplicationBuilder, GraphBuilder
graph = (
GraphBuilder()
.with_actions(human_input, ai_response)
@@ -184,7 +184,7 @@ in a web-server (create a graph once, application many times), import the graph
app = (
ApplicationBuilder()
.with_graph(graph)
- with_state(chat_history=[])
+ .with_state(chat_history=[])
.with_entrypoint("human_input")
.build()
)