Skip to content

Commit

Permalink
feat(Minor update, release 0.0.14):
Browse files Browse the repository at this point in the history
  • Loading branch information
msoedov committed Aug 18, 2023
1 parent c3996d9 commit 35792ea
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 46 deletions.
12 changes: 6 additions & 6 deletions examples/ex10_cc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, List, Optional
from typing import Any, Optional

from langchain.callbacks.manager import CallbackManagerForChainRun
from langchain.chains.base import Chain
Expand All @@ -10,19 +10,19 @@ class CustomChain(Chain):

def _call(
self,
inputs: Dict[str, Any],
inputs: dict[str, Any],
run_manager: Optional[CallbackManagerForChainRun] = None,
) -> Dict[str, str]:
) -> dict[str, str]:
print("input:", inputs)
return {self.output_key: "Hello", "other": "test"}

@property
def input_keys(self) -> List[str]:
def input_keys(self) -> list[str]:
return [self.input_key]

@property
def output_keys(self) -> List[str]:
""":meta private:"""
def output_keys(self) -> list[str]:
"""Meta private."""
return [self.output_key, "other"]


Expand Down
2 changes: 1 addition & 1 deletion examples/ex7_agent.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from langchain import LLMMathChain
from langchain.agents.tools import Tool
from langchain.chat_models import ChatOpenAI
from langchain.llms import OpenAI
from langchain_experimental.plan_and_execute import (
PlanAndExecute,
load_agent_executor,
load_chat_planner,
)
from langchain.llms import OpenAI

llm = OpenAI(temperature=0)
llm_math_chain = LLMMathChain.from_llm(llm=llm, verbose=True)
Expand Down
72 changes: 36 additions & 36 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langcorn"
version = "0.0.13"
version = "0.0.14"
description = "A Python package creating rest api interface for LangChain"
authors = ["Alexander Miasoiedov <[email protected]>"]
maintainers = [
Expand All @@ -25,11 +25,12 @@ openai = "^0.27.8"
fire = "^0.5.0"
loguru = "^0.7.0"
bs4 = "0.0.1" # required for ex4.py
langchain-experimental = "^0.0.8"
langchain-experimental = "^0.0.10"
certifi = "^2023.7.22"

[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
mypy = "^1.4.1"
mypy = "^1.5.1"
httpx = "^0.24.1"
pytest = "^7.4.0"
types-requests = "^2.31.0.1"
Expand Down

1 comment on commit 35792ea

@vercel
Copy link

@vercel vercel bot commented on 35792ea Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

langcorn – ./

langcorn.vercel.app
langcorn-msoedov.vercel.app
langcorn-git-main-msoedov.vercel.app

Please sign in to comment.