FirebaseAIKt

public final class FirebaseAIKt


Summary

Public fields

final @NonNull FirebaseAI

The FirebaseAI instance for the default FirebaseApp using the Google AI Backend.

Public methods

static final @NonNull FirebaseAI
FirebaseAIKt.ai(
    @NonNull Firebase receiver,
    @NonNull FirebaseApp app,
    @NonNull GenerativeBackend backend
)

Returns the FirebaseAI instance for the provided FirebaseApp and backend.

static final @NonNull FirebaseAI
FirebaseAIKt.ai(
    @NonNull Firebase receiver,
    @NonNull FirebaseApp app,
    @NonNull GenerativeBackend backend,
    boolean useLimitedUseAppCheckTokens
)

Returns the FirebaseAI instance for the provided FirebaseApp and backend.

Public fields

ai

public final @NonNull FirebaseAI ai

The FirebaseAI instance for the default FirebaseApp using the Google AI Backend.

Public methods

FirebaseAIKt.ai

public static final @NonNull FirebaseAI FirebaseAIKt.ai(
    @NonNull Firebase receiver,
    @NonNull FirebaseApp app,
    @NonNull GenerativeBackend backend
)

Returns the FirebaseAI instance for the provided FirebaseApp and backend.

Parameters
@NonNull GenerativeBackend backend

the backend reference to make generative AI requests to.

FirebaseAIKt.ai

public static final @NonNull FirebaseAI FirebaseAIKt.ai(
    @NonNull Firebase receiver,
    @NonNull FirebaseApp app,
    @NonNull GenerativeBackend backend,
    boolean useLimitedUseAppCheckTokens
)

Returns the FirebaseAI instance for the provided FirebaseApp and backend.

Parameters
@NonNull GenerativeBackend backend

the backend reference to make generative AI requests to.

boolean useLimitedUseAppCheckTokens

use App Check's limited-use tokens when sending requests to the backend. To learn more about what this means, see the full docs on FirebaseAI.getInstance.