RxInfer Client - v1.3.0
    Preparing search index...

    Class RxInferClient

    RxInferClient provides a factory for creating API clients to interact with the RxInfer service. This class cannot be instantiated directly - use the static create() method instead.

    Index

    Constructors

    Methods

    Constructors

    • Private constructor to prevent direct instantiation.

      Returns RxInferClient

      Error Always throws an error directing users to use the create() method.

    Methods

    • Creates a new API client for the RxInfer service.

      Parameters

      • baseUrl: string = 'http://localhost:8000/v1'

        The base URL of the RxInfer API. Defaults to 'http://localhost:8000/v1'.

      • apiKey: undefined | string = undefined

        Optional API key. If not provided, a temporary token will be generated.

      Returns Promise<Client>

      A Promise that resolves to a configured Client instance.

      Error If no API key is provided and token generation fails.