Datasets:
Download contract_skeleton/src/yuyao/agent_api.py from YuyaoGe/doc2harness: direct link, hf CLI and curl.
- Browser
- Download file 920 Bytes
-
https://huggingface.co/datasets/YuyaoGe/doc2harness/resolve/main/contract_skeleton/src/yuyao/agent_api.py
- Command line
-
hf download hf://datasets/YuyaoGe/doc2harness/contract_skeleton/src/yuyao/agent_api.py
-
curl -L -o agent_api.py https://huggingface.co/datasets/YuyaoGe/doc2harness/resolve/main/contract_skeleton/src/yuyao/agent_api.py
920 Bytes
| """The fixed entry point through which external programs drive this agent. | |
| For the contract, see `.d2a_spec/functional_spec.md` §0.1.2. | |
| These signatures must not change: external programs call exactly this shape. | |
| """ | |
| from __future__ import annotations | |
| def create_session(*, deny=None, mode=None, role=None, cwd=None) -> "AgentSession": | |
| raise NotImplementedError | |
| class AgentSession: | |
| def cwd(self) -> str: | |
| raise NotImplementedError | |
| def messages(self) -> list: | |
| raise NotImplementedError | |
| def dispatch(self, command: str) -> str: | |
| raise NotImplementedError | |
| def chat(self, text: str) -> str: | |
| raise NotImplementedError | |
| def config_get(self, key: str): | |
| raise NotImplementedError | |
| def mcp_servers(self) -> list: | |
| raise NotImplementedError | |
| def close(self) -> None: | |
| raise NotImplementedError | |