coinbase_agentkit.action_providers.hyperboliclabs package

Subpackages

Submodules

coinbase_agentkit.action_providers.hyperboliclabs.action_provider module

Base class for Hyperbolic action providers.

This module provides a base class for all Hyperbolic action providers with centralized API key handling.

class coinbase_agentkit.action_providers.hyperboliclabs.action_provider.ActionProvider(name, action_providers, api_key=None)

Bases: ActionProvider[TWalletProvider]

Base class for all Hyperbolic action providers.

This base class centralizes API key handling for all Hyperbolic action providers. It requires an API key which can be provided directly or through the HYPERBOLIC_API_KEY environment variable.

supports_network(network)

Check if network is supported by Hyperbolic actions.

Hyperbolic services are not network-specific, so this always returns True.

Parameters:

network (Network) – The network to check.

Returns:

Always True as Hyperbolic services are network-agnostic.

Return type:

bool

coinbase_agentkit.action_providers.hyperboliclabs.constants module

Constants for Hyperbolic API integration.

coinbase_agentkit.action_providers.hyperboliclabs.hyperbolic_action_provider module

Hyperbolic action provider.

This module provides a unified interface to all Hyperbolic platform services. It includes sub-providers for marketplace (GPU compute), billing, AI services, and account settings.

class coinbase_agentkit.action_providers.hyperboliclabs.hyperbolic_action_provider.HyperbolicActionProvider(api_key=None)

Bases: ActionProvider

Provides unified access to all Hyperbolic platform services.

This provider aggregates functionality from all Hyperbolic action providers: - ai: text, image, and audio generation - billing: balance, spending history - marketplace: GPU compute resources - settings: account settings management

It requires an API key which can be provided directly or through the HYPERBOLIC_API_KEY environment variable.

supports_network(network)

Check if network is supported by Hyperbolic actions.

Parameters:

network (Network) – The network to check.

Returns:

True, as Hyperbolic actions don’t require any specific network.

Return type:

bool

coinbase_agentkit.action_providers.hyperboliclabs.hyperbolic_action_provider.hyperbolic_action_provider(api_key=None)

Create a new instance of the HyperbolicActionProvider.

Parameters:

api_key (Optional[str]) – Optional API key for authentication. If not provided, will attempt to read from HYPERBOLIC_API_KEY environment variable.

Return type:

HyperbolicActionProvider

Returns:

A new Hyperbolic action provider instance.

coinbase_agentkit.action_providers.hyperboliclabs.service module

Base service for making API requests to Hyperbolic platform.

class coinbase_agentkit.action_providers.hyperboliclabs.service.Base(api_key, base_url=None)

Bases: object

Base class with common functionality.

make_request(endpoint, method='POST', data=None, params=None, headers=None)

Make an API request to the service endpoint.

Parameters:
  • endpoint (str) – The endpoint path to call.

  • method (str) – The HTTP method to use (default: “POST”).

  • data (Optional[dict[str, Any]]) – Optional JSON body for the request.

  • params (Optional[dict[str, Any]]) – Optional query parameters.

  • headers (Optional[dict[str, str]]) – Optional additional headers.

Returns:

The raw HTTP response object.

Return type:

requests.Response

Raises:
  • requests.HTTPError – If the API returns an error response (4xx, 5xx), with the error message and code extracted from the response when available.

  • requests.RequestException – For other request-related errors.

coinbase_agentkit.action_providers.hyperboliclabs.utils module

Utility functions for Hyperbolic action provider.

coinbase_agentkit.action_providers.hyperboliclabs.utils.get_api_key()

Get Hyperbolic API key from environment variables.

Returns:

The API key.

Return type:

str

Raises:

ValueError – If API key is not configured.

Module contents

Hyperbolic Labs Action Provider for renting compute resources through the Hyperbolic Platform.

class coinbase_agentkit.action_providers.hyperboliclabs.HyperbolicActionProvider(api_key=None)

Bases: ActionProvider

Provides unified access to all Hyperbolic platform services.

This provider aggregates functionality from all Hyperbolic action providers: - ai: text, image, and audio generation - billing: balance, spending history - marketplace: GPU compute resources - settings: account settings management

It requires an API key which can be provided directly or through the HYPERBOLIC_API_KEY environment variable.

supports_network(network)

Check if network is supported by Hyperbolic actions.

Parameters:

network (Network) – The network to check.

Returns:

True, as Hyperbolic actions don’t require any specific network.

Return type:

bool

coinbase_agentkit.action_providers.hyperboliclabs.hyperbolic_action_provider(api_key=None)

Create a new instance of the HyperbolicActionProvider.

Parameters:

api_key (Optional[str]) – Optional API key for authentication. If not provided, will attempt to read from HYPERBOLIC_API_KEY environment variable.

Return type:

HyperbolicActionProvider

Returns:

A new Hyperbolic action provider instance.