Spaces:
Sleeping
Sleeping
Download src/agents/base/tools.py from ABAO77/Run_code_api: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/ABAO77/Run_code_api/resolve/c5ca6dc624a28126c87badbaed52fccda6c1e7f5/src/agents/base/tools.py
- Command line
-
hf download hf://spaces/ABAO77/Run_code_api@c5ca6dc624a28126c87badbaed52fccda6c1e7f5/src/agents/base/tools.py
-
curl -L -o tools.py https://huggingface.co/spaces/ABAO77/Run_code_api/resolve/c5ca6dc624a28126c87badbaed52fccda6c1e7f5/src/agents/base/tools.py
381 Bytes
| from langchain_core.tools import tool | |
| from loguru import logger | |
| 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 | |