Adapter
Understanding HUD Adapters
Adapter
An Adapter
in the HUD SDK is responsible for translating between your agent’s action format and the Common Language for Action (CLA) format used by the HUD environment.
Purpose
Adapters serve as a bridge between:
-
Your agent’s custom action format
-
The standardized CLA format expected by HUD environments
This allows you to use different agent implementations without changing how they interact with the environment.
Built-in Adapters
The HUD SDK includes several built-in adapters:
-
Claude Adapter: For integrating with Anthropic’s Claude models
-
Common Adapter: A base adapter that can be extended for custom implementations
Creating a Custom Adapter
You can create your own adapter by extending the base Adapter
class:
Using Adapters
Adapters are used when creating an environment: