File size: 381 Bytes
6cbca40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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