Spaces:
Paused
Paused
Download potato/agent_proxy/__init__.py from Blablablab/ner-span: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/spaces/Blablablab/ner-span/resolve/main/potato/agent_proxy/__init__.py
- Command line
-
hf download hf://spaces/Blablablab/ner-span/potato/agent_proxy/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Blablablab/ner-span/resolve/main/potato/agent_proxy/__init__.py
1.24 kB
| """ | |
| Agent Proxy Package | |
| Provides agent proxy implementations for live agent interaction during annotation. | |
| Proxies communicate with AI agent backends (echo, HTTP, OpenAI) and return | |
| responses to the annotation interface. | |
| Usage: | |
| from potato.agent_proxy import AgentProxyFactory | |
| proxy = AgentProxyFactory.create(config) | |
| context = proxy.start_session("Book a flight to Paris") | |
| response = proxy.send_message("Hello", context) | |
| """ | |
| from .base import AgentMessage, AgentResponse, BaseAgentProxy, AgentProxyFactory | |
| from .session import ( | |
| AgentSession, | |
| AgentSessionManager, | |
| init_agent_session_manager, | |
| get_agent_session_manager, | |
| clear_agent_session_manager, | |
| ) | |
| from .sandbox import SafetySandbox, SandboxViolation | |
| # Import proxy implementations to trigger registration | |
| from . import echo_proxy | |
| from . import http_proxy | |
| from . import openai_proxy | |
| from . import coding_proxy # subprocess_coding + docker_coding | |
| __all__ = [ | |
| "AgentMessage", | |
| "AgentResponse", | |
| "BaseAgentProxy", | |
| "AgentProxyFactory", | |
| "AgentSession", | |
| "AgentSessionManager", | |
| "init_agent_session_manager", | |
| "get_agent_session_manager", | |
| "clear_agent_session_manager", | |
| "SafetySandbox", | |
| "SandboxViolation", | |
| ] | |