Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

feat: add user message as argument, pass total tasks into run info sent to server

Alezander9bc95b0e2fab6
diff --git a/eval/service.py b/eval/service.py
index ed8a20027..8dddecaa1 100644
--- a/eval/service.py
+++ b/eval/service.py
@@ -1073,6 +1073,7 @@ if __name__ == '__main__':
default=True,
help='Clear saved_trajectories before starting. Set to False to keep existing trajectories (default: True)',
)
+ parser.add_argument('--user-message', type=str, default='', help='User message to include in the run')
args = parser.parse_args()
# Set up logging - Make sure logger is configured before use in fetch function
@@ -1173,7 +1174,8 @@ if __name__ == '__main__':
'gitBranch': git_info['branch'],
'gitCommitHash': git_info['hash'],
'gitCommitTimestamp': git_info['timestamp'],
- 'userMessage': f'Automated run started by eval/service.py for model {args.model}', # Example message
+ 'userMessage': args.user_message,
+ 'totalTasks': args.end - args.start,
'additionalData': additional_run_data,
}