Spaces:
Sleeping
Sleeping
Download tools/__init__.py from jwlee-ai/Final_Assignment_Template: direct link, hf CLI and curl.
- Browser
- Download file 828 Bytes
-
https://huggingface.co/spaces/jwlee-ai/Final_Assignment_Template/resolve/main/tools/__init__.py
- Command line
-
hf download hf://spaces/jwlee-ai/Final_Assignment_Template/tools/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/jwlee-ai/Final_Assignment_Template/resolve/main/tools/__init__.py
828 Bytes
| """에이전트 도구 묶음. | |
| `from tools import web_search, visit_webpage, ...` 한 번으로 모두 import 가능. | |
| 세부 구현은 각 모듈 파일에 분리되어 있다. | |
| """ | |
| from .search import web_search | |
| from .webpage import visit_webpage | |
| from .wikipedia import wikipedia_search | |
| from .youtube import youtube_info | |
| from .exec_code import exec_python_code | |
| from .attachments import ( | |
| get_attached_file, | |
| prefetch_question_index, | |
| set_question_index, | |
| set_current_task, | |
| ) | |
| __all__ = [ | |
| # @tool 함수 (CodeAgent에 직접 등록) | |
| "web_search", | |
| "visit_webpage", | |
| "wikipedia_search", | |
| "youtube_info", | |
| "exec_python_code", | |
| "get_attached_file", | |
| # 일반 헬퍼 (BasicAgent의 init/__call__에서 사용) | |
| "prefetch_question_index", | |
| "set_question_index", | |
| "set_current_task", | |
| ] | |