Download agentbench_scripts/check/containing.py from Manojb/small-llm-tool-use-bench: direct link, hf CLI and curl.
- Browser
- Download file 206 Bytes
-
https://huggingface.co/Manojb/small-llm-tool-use-bench/resolve/main/agentbench_scripts/check/containing.py
- Command line
-
hf download hf://Manojb/small-llm-tool-use-bench/agentbench_scripts/check/containing.py
-
curl -L -o containing.py https://huggingface.co/Manojb/small-llm-tool-use-bench/resolve/main/agentbench_scripts/check/containing.py
206 Bytes
| from sys import argv | |
| def norm_newline(s): | |
| return s.replace("\r\n", "\n").replace("\r", "\n") | |
| v1 = norm_newline(argv[1]).strip() | |
| v2 = norm_newline(argv[2]).strip() | |
| if v2 in v1: | |
| exit(0) | |
| else: | |
| exit(1) |