Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.
Python aiburrchatbot-frameworkdagsgenerative-aigraphshacktoberfestllmopsllmsmlopspersistent-data-structurestate-machinestate-managementvisibility
Updates docs to use @action.pydantic instead of @pydantic_action
elijahbenizzy76f04125f674
diff --git a/docs/concepts/state-typing.rst b/docs/concepts/state-typing.rstindex 82235a38..303a1d6b 100644--- a/docs/concepts/state-typing.rst+++ b/docs/concepts/state-typing.rst@@ -38,6 +38,7 @@ First, define a pydantic model for your application:.. code-block:: pythonfrom pydantic import BaseModel+class ApplicationState(pydantic.BaseModel):chat_history: List[dict[str, str]] = pydantic.Field(default_factory=list)prompt: Optional[str] = None@@ -80,7 +81,9 @@ You can also define type computations on on the action-level:.. code-block:: python- @pydantic_action(reads=["prompt", "chat_history"], writes=["response"])+ from burr.core import action++ @action.pydantic(reads=["prompt", "chat_history"], writes=["response"])def image_response(state: ApplicationState, model: str = "dall-e-2") -> ApplicationState:client = _get_openai_client()result = client.images.generate(