Update tools/produce_classifier.py
Browse files
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 |
"""
|