GUI-LongDep / adapters /evocua /__init__.py
M-Ma's picture
Add files using upload-large-folder tool
60a492b verified
Raw History Blame Contribute Delete
686 Bytes
"""EvoCUA adapter for GUI-LongDep: prompt construction and reply parsing.
``prompting.EvoCUAPrompter`` builds the exact request of the reference results (needs Pillow);
``reply`` converts between dataset steps and EvoCUA replies (standard library only).
The ``osworld`` folder is the EvoCUA agent code vendored from OSWorld-V2 (Apache-2.0).
"""
from .reply import build_reply, to_actions
def __getattr__(name):
# Lazy, so that ``score.py --adapter evocua`` does not need Pillow.
if name == "EvoCUAPrompter":
from .prompting import EvoCUAPrompter
return EvoCUAPrompter
raise AttributeError(name)
__all__ = ["EvoCUAPrompter", "build_reply", "to_actions"]