Skip to content

Commit

Permalink
Rename tools to avoid calling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
whimo committed May 20, 2024
1 parent 0fb9427 commit f5d4621
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion motleycrew/tools/mermaid_evaluator_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def eval_mermaid_partial(mermaid_code: str):

langchain_tool = Tool.from_function(
func=eval_mermaid_partial,
name="Mermaid Evaluator Tool",
name="mermaid_evaluator_tool",
description="Evaluates Mermaid code and returns the output as a BytesIO object.",
args_schema=create_model(
"MermaidEvaluatorToolInput",
Expand Down
2 changes: 1 addition & 1 deletion motleycrew/tools/simple_retriever_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def call_retriever(question: Question) -> list:

retriever_tool = StructuredTool.from_function(
func=call_retriever,
name="Information retriever tool",
name="information_retriever_tool",
description="Useful for running a natural language query against a"
" knowledge base and retrieving a set of relevant documents.",
args_schema=RetrieverToolInput,
Expand Down

0 comments on commit f5d4621

Please sign in to comment.