mirror of
https://github.com/trycua/computer.git
synced 2026-01-05 12:59:58 -06:00
Update hud_eval_examples.py
added documentation
This commit is contained in:
@@ -29,13 +29,23 @@ def load_env_or_fail() -> None:
|
||||
if not os.getenv("HUD_API_KEY"):
|
||||
raise EnvironmentError("❌ HUD_API_KEY is missing in the loaded environment")
|
||||
|
||||
|
||||
"""
|
||||
Build Agent Config
|
||||
- customize agent behavior, tool integration, callbacks, resource management, and more
|
||||
- https://docs.trycua.com/docs/agent-sdk/agent-loops#parameters
|
||||
- https://docs.trycua.com/docs/agent-sdk/supported-model-providers
|
||||
"""
|
||||
def build_agent_config() -> dict:
|
||||
|
||||
instruction = "You are a computer-using agent graded by deterministic checkers."
|
||||
|
||||
|
||||
return {
|
||||
"model": "openai/computer-use-preview",
|
||||
"trajectory_dir": str(Path("trajectories")),
|
||||
"only_n_most_recent_images": 3,
|
||||
"verbosity": logging.INFO,
|
||||
"instruction": instruction,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user