Skip to content

feat: create Firebase AI quickstart #2667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 52 commits into from
May 20, 2025
Merged

feat: create Firebase AI quickstart #2667

merged 52 commits into from
May 20, 2025

Conversation

thatfiredev
Copy link
Member

@thatfiredev thatfiredev commented May 19, 2025

CI will fail at the moment, since the SDK has not been released yet. I will make sure it's green after the SDK is released and only merge by then.

Fast follows:

  • Add a Function calling example
  • Add a Stream Realtime example

@thatfiredev thatfiredev requested review from rlazo and marinacoelho May 19, 2025 14:05
textAlign = TextAlign.End,
modifier = Modifier
.background(backgroundColor.copy(
red = backgroundColor.red * 0.7f,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: create color variables in Color.kt and add the transparency using hex color code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The backgroundColor property here is dynamic and it changes according to the color set at the OS-level, so it can't really be hardcoded into Color.kt.

    val backgroundColor = when (chatMessage.role) {
        "user" -> MaterialTheme.colorScheme.tertiaryContainer
        else -> MaterialTheme.colorScheme.secondaryContainer
    }

Copy link
Contributor

@marinacoelho marinacoelho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking very good! Just left a few comments (not all of them are blockers). We should also add a README before merging it :)

@thatfiredev thatfiredev merged commit 0e37b0b into master May 20, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants