Deprecate LLMMessagesFrame.
The same functionality can be achieved using either: - `LLMMessagesUpdateFrame` with the desired messages, with `run_llm` set to `True` - `OpenAILLMContextFrame` with a new context initialized with the desired messages
This commit is contained in:
@@ -490,6 +490,17 @@ class LLMMessagesFrame(DataFrame):
|
|||||||
|
|
||||||
messages: List[dict]
|
messages: List[dict]
|
||||||
|
|
||||||
|
def __post_init__(self):
|
||||||
|
super().__post_init__()
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
warnings.simplefilter("always")
|
||||||
|
warnings.warn(
|
||||||
|
"LLMMessagesFrame is deprecated and will be removed in a future release.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class LLMMessagesAppendFrame(DataFrame):
|
class LLMMessagesAppendFrame(DataFrame):
|
||||||
|
|||||||
Reference in New Issue
Block a user