mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
19 lines
523 B
Python
19 lines
523 B
Python
"""
|
|
CrewAI Flow Persistence.
|
|
|
|
This module provides interfaces and implementations for persisting flow states.
|
|
"""
|
|
|
|
from typing import Any, TypeVar
|
|
|
|
from pydantic import BaseModel
|
|
|
|
from crewai.flow.persistence.base import FlowPersistence
|
|
from crewai.flow.persistence.decorators import persist
|
|
from crewai.flow.persistence.sqlite import SQLiteFlowPersistence
|
|
|
|
__all__ = ["FlowPersistence", "SQLiteFlowPersistence", "persist"]
|
|
|
|
StateType = TypeVar("StateType", bound=dict[str, Any] | BaseModel)
|
|
DictStateType = dict[str, Any]
|