Skip to content

Commit

Permalink
Merge branch 'llm_tools' of https://github.com/srdas/jupyter-ai into …
Browse files Browse the repository at this point in the history
…llm_tools
  • Loading branch information
srdas committed Sep 18, 2024
2 parents 1481008 + 8a40f3c commit ee0b6bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from .base import BaseChatHandler, SlashCommandRoutingType


PROMPT_TEMPLATE = """Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question.
Chat History:
Expand Down Expand Up @@ -85,7 +86,6 @@ def create_llm_chain(
llm=self.llm, prompt=CONDENSE_PROMPT, memory=memory, verbose=False
)


def conditional_continue(self, state: MessagesState) -> Literal["tools", "__end__"]:
messages = state["messages"]
last_message = messages[-1]
Expand Down Expand Up @@ -131,7 +131,6 @@ def getToolNames(self, tools_file_path):
except FileNotFoundError as e: # to do
self.reply(f"Tools file not found at {tools_file_path}.")


def useLLMwithTools(self, query):
"""
LangGraph documentation : https://langchain-ai.github.io/langgraph/tutorials/introduction/
Expand Down

0 comments on commit ee0b6bc

Please sign in to comment.