Skip to content

Commit f71f6c1

Browse files
authored
chore: deprecate create_conversational_agent (#671)
1 parent 04c7900 commit f71f6c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rai_core/rai/agents/langchain/core/conversational_agent.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from functools import partial
1818
from typing import List, Optional, TypedDict
1919

20+
from deprecated import deprecated
2021
from langchain.chat_models.base import BaseChatModel
2122
from langchain_core.messages import (
2223
BaseMessage,
@@ -64,6 +65,10 @@ def agent(
6465
return state
6566

6667

68+
@deprecated(
69+
"Use rai.agents.langchain.core.create_react_runnable instead. "
70+
"Support for the conversational agent will be removed in the 3.0 release."
71+
)
6772
def create_conversational_agent(
6873
llm: BaseChatModel,
6974
tools: List[BaseTool],

0 commit comments

Comments
 (0)