Download agent/tools/types.py from Anurag43/ml-intern: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/spaces/Anurag43/ml-intern/resolve/main/agent/tools/types.py
- Command line
-
hf download hf://spaces/Anurag43/ml-intern/agent/tools/types.py
-
curl -L -o types.py https://huggingface.co/spaces/Anurag43/ml-intern/resolve/main/agent/tools/types.py
294 Bytes
| """ | |
| Types for Hugging Face tools | |
| Ported from: hf-mcp-server/packages/mcp/src/types/ | |
| """ | |
| from typing import TypedDict | |
| class ToolResult(TypedDict, total=False): | |
| """Result returned by HF tool operations""" | |
| formatted: str | |
| totalResults: int | |
| resultsShared: int | |
| isError: bool | |