Download test_planner.py from sedayzc/developer-asisstant-tool-call: direct link, hf CLI and curl.
- Browser
- Download file 314 Bytes
-
https://huggingface.co/spaces/sedayzc/developer-asisstant-tool-call/resolve/main/test_planner.py
- Command line
-
hf download hf://spaces/sedayzc/developer-asisstant-tool-call/test_planner.py
-
curl -L -o test_planner.py https://huggingface.co/spaces/sedayzc/developer-asisstant-tool-call/resolve/main/test_planner.py
314 Bytes
| from llm.planner import create_tool_plan | |
| def main() -> None: | |
| thinking, plan = create_tool_plan( | |
| "Compare requests and httpx." | |
| ) | |
| print("\n--- THINKING ---") | |
| print(thinking) | |
| print("\n--- TOOL PLAN ---") | |
| print(plan.model_dump_json(indent=2)) | |
| if __name__ == "__main__": | |
| main() |