ABAO77's picture
Implement lesson practice agent and related functionality
c0a7f25
raw
history blame
381 Bytes
from langchain_core.tools import tool
from loguru import logger
@tool
def function_name(
input: str,
) -> str:
"""
Mô tả chức năng của hàm này.
"""
logger.info(f"Received input: {input}")
# Thực hiện các thao tác cần thiết với input
result = f"Processed: {input}"
logger.info(f"Returning result: {result}")
return result