Spaces:
Sleeping
Sleeping
Download cert_study_app/agents/base.py from Kentlo/cert-study-app: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/spaces/Kentlo/cert-study-app/resolve/main/cert_study_app/agents/base.py
- Command line
-
hf download hf://spaces/Kentlo/cert-study-app/cert_study_app/agents/base.py
-
curl -L -o base.py https://huggingface.co/spaces/Kentlo/cert-study-app/resolve/main/cert_study_app/agents/base.py
388 Bytes
| from __future__ import annotations | |
| from dataclasses import asdict, dataclass, field | |
| from typing import Any | |
| class AgentResult: | |
| agent: str | |
| status: str = "ok" | |
| message: str = "" | |
| metrics: dict[str, Any] = field(default_factory=dict) | |
| artifacts: dict[str, Any] = field(default_factory=dict) | |
| def to_dict(self) -> dict[str, Any]: | |
| return asdict(self) | |