diff --git a/README.md b/README.md index 4d551ee..09ef87e 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ class TodoList(BaseModel): todos: list[Item] urgency: int = Field(description="The urgency of all tasks (1-10)") -# support for union types +# support for union types def extract_list(user_input: str) -> TodoList | ShoppingList: """ The user input is either a shopping List or a todo list. diff --git a/src/funcchain/chain/creation.py b/src/funcchain/chain/creation.py index 5dc6409..08dc65c 100644 --- a/src/funcchain/chain/creation.py +++ b/src/funcchain/chain/creation.py @@ -4,7 +4,7 @@ from langchain_core.language_models import BaseChatModel from langchain_core.prompts import ChatPromptTemplate from langchain_core.messages import AIMessage, BaseMessage, HumanMessage -from langchain_core.output_parsers import BaseOutputParser +from langchain_core.output_parsers import BaseOutputParser from langchain_core.chat_history import BaseChatMessageHistory from langchain_core.runnables import ( RunnableSequence,