Basic Example
A basic example of using the HUD SDK
This example demonstrates how to use the HUD SDK with a simple agent to interact with an environment.
Setup
First, import the necessary components:
Create a Simple Agent
Create a Simple Adapter
Main Loop
Running the Example
- Make sure you have the HUD SDK installed and configured with your API key
- Save the code in a Python file (e.g.,
basic_example.py
) - Run the script:
python basic_example.py
This example demonstrates:
- Creating a simple agent that can type text and click
- Using a basic adapter to convert actions to CLA format
- Setting up and running an environment
- Handling the agent-environment interaction loop
- Evaluating the results