* feat(ai): implementmulti-speaker speech config; includes tests
* add changeset, fix typo
* fix: yarn format
* fix changeset
* fix changeset typo
* remove unnecessary tests; fix interface description to match proposal
* Generate documentation
* fix: yarn format & lint fix
* add more descriptive changeset
* Adds tests for speech config to check if its correctly passed through to the API requests for both generateContent and generateContentStream methods
* yarn format
* yarn format
* Refine changeset file description
* Fix typo
* format fix
* update description BaseSpeechConfig
* update descriptions
* format doc
* yarn format
* fix @ typo over MultiSpeakerSpeechConfig
* fix: adjusted description wording for the interfaces; fix: public tags to beta
* fix: formatting using @remarks
* fix: typo
* yarn format
* run yarn docgen:all
* update SpeechConfig to beta
* update speech config to beta
* upd SingleSpeakerSpeechConfig description
* doc generation
* docs(firestore): fix formatting for docs code snippets
- Fixes `findNearest` example doc formatting, which was causing
formatting to be lost for all subsequent APIs in the TOC in devsite.
- Removes `Example:` and `<p>Example:` from before all code examples,
since we use `@example` for this.
* add changeset firebase
* Update packages/firestore/src/lite-api/pipeline.ts
* update docs
* docs(firestore): fix ref doc issues for piplines (#9912)
* docs(firestore): fix ref doc issues for piplines
* Update packages/firestore/src/lite-api/pipeline.ts
* Update packages/firestore/src/lite-api/pipeline.ts
* docs-devsite
---------
* docs(firestore): add missing `typescript` formatting to docs (#9909)
Adds `typescript` code formatting to the code examples in docs, where
they're missing.
* cleanup
* remove changeset
---------
Co-authored-by: Mark Duckworth <[email protected]>
Co-authored-by: Hanzo Dev <[email protected]>
* chore(ci): make all firestore integration tests optional
* fix: align expressions and pipelines, address review comments, update yarn.lock, and fix package versions
* chore: update yarn.lock after merge
* fix: restore firestore package version and devDependencies to 4.15.0
### Discussion
Implement new tools to use Grounding with Google Maps, similar to how Grounding with Google Search works.
### Testing
Integration tests.
Unit tests.
Node standalone app.
Updated Quickstart React-based app (not part of this PR).
### API Changes
- Grounding with Google Maps support, see internal doc: go/fal-maps-grounding-api
- TemplateToolConfig, see internal doc: go/firebase-ai-server-prompt-template
* Add support for parent expression
* Add documentation and fix formatting
* Add changeset
* Change path in tests as suggested by gemini auto review
* Update docs-devsite/firestore_pipelines.md
* Update docs-devsite/firestore_pipelines.md
* Update docs-devsite/firestore_lite_pipelines.md
* Update docs-devsite/firestore_lite_pipelines.md
* Update docs-devsite/firestore_pipelines.md
* Update docs-devsite/firestore_pipelines.md
* fix formatting and documentation
* Update documentation to make the return value clearer
* remove the ts ignore notation
* Remove beta notation and timeout for tests and regenerate documentation
---------
Co-authored-by: Hanzo Dev <[email protected]>
* Add timestampTrunc, timestampDiff and timestampExtract expressions
* Add changeset
* Fix formatting
* Fix variable names to follow camelCase
* Generate documentation
* Fix the int64 documentation error
* Fix formatting
* Add a test for isoWeek for timestampTruncate
* Refactor the parameters for timestamp expressions and change all timegranularity value to lowercase
* Remove duplicate timePart variables
* Fix documentation error
Adds `responseJsonSchema` field, which takes an object in JSON Schema format.
Gemini docs examples show how to use the zod library to easily generate this object (https://ai.google.dev/gemini-api/docs/structured-output?example=recipe), and we should follow this with an example of how to do the same, somewhere in the Firebase guides. Maybe this page? https://firebase.google.com/docs/ai-logic/generate-structured-output?api=dev
Tested manually with Developer API and Vertex and both work.
Doc changes: Added text for `responseJsonSchema` and used `@remarks` to remove bulk of text of both `responseSchema` and `responseJsonSchema` from table of contents (full text is still in the section below).
Fixes#9625
* add rand and trunc expressions and tests
* Update packages/firestore/src/lite-api/expressions.ts
Co-authored-by: Daniel La Rocque <[email protected]>
* Update packages/firestore/src/lite-api/expressions.ts
Co-authored-by: Daniel La Rocque <[email protected]>
* Update packages/firestore/src/lite-api/expressions.ts
Co-authored-by: Daniel La Rocque <[email protected]>
---------
Co-authored-by: Daniel La Rocque <[email protected]>
### Discussion
Support the handling of Going Away notifications in the Live Service. The service may send this event when the session is coming to a close due to timeout or nearing a token limit.
### Testing
Unit tests added.
Manual testing.
### API Changes
See internal [API proposal](https://goto.google.com/fal-firebase-api-live-api-goaway-message).