dmfelder commited on
Commit
0b87aaa
·
verified ·
1 Parent(s): 6c4d061

Update tools/produce_classifier.py

Browse files
Files changed (1) hide show
  1. tools/produce_classifier.py +6 -0
tools/produce_classifier.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  @tool("produce_classifier_tool", parse_docstring=True)
2
  def produce_classifier(food_name: str) -> str:
3
  """
 
1
+ import os
2
+ from langchain_core.tools import tool # ← this needs to be before the decorator
3
+ from langchain_openai import ChatOpenAI
4
+ from loguru import logger
5
+ from pydantic import SecretStr
6
+
7
  @tool("produce_classifier_tool", parse_docstring=True)
8
  def produce_classifier(food_name: str) -> str:
9
  """