-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a little to docs on state persistence
This mostly adds TODOs but it sets up the structure.
- Loading branch information
Showing
10 changed files
with
64 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
================= | ||
State Persistence | ||
================= | ||
|
||
.. _state-persistence: | ||
|
||
Key to writing a real life `burr` application is state persistence. E.g. you're building a chat bot and you | ||
want to store the conversation history and then reload it when you restart. Or, you have a long running process, | ||
or series of agents, and you want to store the state of the process after each action, and then reload it if it fails, etc. | ||
|
||
Here we'll walk through how to add state persistence to a `burr` application. The following walk through the relevant | ||
ApplicationBuilder() methods, and then a full toy example. | ||
|
||
.initialize_from() method | ||
_________________________ | ||
TODO: | ||
|
||
.with_persister() method | ||
________________________ | ||
TODO: | ||
|
||
Supported Persisters | ||
-------------------- | ||
TODO: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
================= | ||
State Persistence | ||
================= | ||
|
||
This is an interface one should implement to provide state persistence for your | ||
application. | ||
|
||
.. autoclass:: burr.core.state.BasicStatePersistence | ||
:members: | ||
|
||
.. automethod:: __init__ | ||
|
||
|
||
Supported Implementations | ||
========================= | ||
|
||
|
||
.. autoclass:: burr.core.state.SQLLitePersistence | ||
:members: | ||
|
||
.. automethod:: __init__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters