policy fixes

This commit is contained in:
olgavrou 2023-09-04 18:46:45 -04:00
parent 736e0dd46e
commit 5c2069890f
2 changed files with 2 additions and 21 deletions

View File

@ -36,16 +36,6 @@
"execution_count": 2, "execution_count": 2,
"metadata": {}, "metadata": {},
"outputs": [ "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": { "data": {
"text/plain": [ "text/plain": [
@ -112,16 +102,7 @@
"cell_type": "code", "cell_type": "code",
"execution_count": 4, "execution_count": 4,
"metadata": {}, "metadata": {},
"outputs": [ "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"
]
}
],
"source": [ "source": [
"import langchain.chains.rl_chain as rl_chain\n", "import langchain.chains.rl_chain as rl_chain\n",
"\n", "\n",

View File

@ -166,7 +166,7 @@ class Event(Generic[TSelected], ABC):
TEvent = TypeVar("TEvent", bound=Event) TEvent = TypeVar("TEvent", bound=Event)
class Policy(ABC): class Policy(Generic[TEvent], ABC):
def __init__(self, **kwargs: Any): def __init__(self, **kwargs: Any):
pass pass