feat: add client password argument to multiple agents and scripts
- Introduced `--client_password` argument in `run_multienv_aguvis.py`, `run_multienv_claude.py`, and `run_multienv_gta1.py` for enhanced security and flexibility. - Updated agent classes (`PromptAgent`, `AguvisAgent`, `GTA1Agent`) to accept and utilize `client_password` for improved configuration. - Modified evaluation guidelines to reflect the new client password requirement. - Ensured existing logic remains intact while enhancing functionality for better user experience.
This commit is contained in:
@@ -644,7 +644,7 @@ class OpenAICUAAgent:
|
||||
"""
|
||||
Predict the next action(s) based on the current observation.
|
||||
"""
|
||||
prompt = OPERATOR_PROMPT.replace("{CLIENT_PASSWORD}", self.client_password)
|
||||
prompt = OPERATOR_PROMPT.format(CLIENT_PASSWORD=self.client_password)
|
||||
|
||||
base64_image = encode_image(obs["screenshot"])
|
||||
if self.cua_messages == []:
|
||||
|
||||
Reference in New Issue
Block a user