mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 04:07:54 +00:00
policy fixes
This commit is contained in:
parent
736e0dd46e
commit
5c2069890f
@ -36,16 +36,6 @@
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"/home/olgavrou/langchain/.testlcvenv/lib/python3.8/site-packages/langchain/utils/utils.py:155: UserWarning: WARNING! engine is not default parameter.\n",
|
||||
" engine was transferred to model_kwargs.\n",
|
||||
" Please confirm that engine is what you intended.\n",
|
||||
" warnings.warn(\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
@ -112,16 +102,7 @@
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"/home/olgavrou/langchain/.testlcvenv/lib/python3.8/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
||||
" from .autonotebook import tqdm as notebook_tqdm\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import langchain.chains.rl_chain as rl_chain\n",
|
||||
"\n",
|
||||
|
@ -166,7 +166,7 @@ class Event(Generic[TSelected], ABC):
|
||||
TEvent = TypeVar("TEvent", bound=Event)
|
||||
|
||||
|
||||
class Policy(ABC):
|
||||
class Policy(Generic[TEvent], ABC):
|
||||
def __init__(self, **kwargs: Any):
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user