Skip to content

docs(ai): add missing JSDoc descriptions for AI provider tables and t… - #1951

Open
shettyvarun268 wants to merge 4 commits into
masterfrom
shettyvarun268-add-ai-table-descriptions
Open

docs(ai): add missing JSDoc descriptions for AI provider tables and t…#1951
shettyvarun268 wants to merge 4 commits into
masterfrom
shettyvarun268-add-ai-table-descriptions

Conversation

@shettyvarun268

Copy link
Copy Markdown
Contributor

Description

Adds missing JSDoc descriptions for exported interfaces, variables, type aliases, and properties in firebase-functions/v2/ai so that all reference overview tables are populated with descriptions.

Release notes

relnote: none

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds JSDoc documentation to various exported types, interfaces, and constants in the AI provider module to improve API clarity. The review feedback suggests two improvements to the added documentation: clarifying that BlockingFunction is a Cloud Function that handles AI blocking events rather than being returned by handlers, and correcting the description of contents in GenerateContentRequest to specify that it represents an array of conversation turns rather than individual content parts.

Comment thread src/v2/providers/ai/index.ts
Comment thread src/v2/providers/ai/types/gemini/v1beta/index.ts Outdated
@shettyvarun268

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds JSDoc documentation comments to various exported types, interfaces, constants, and properties within the AI provider module, specifically in src/v2/providers/ai/index.ts and src/v2/providers/ai/types/gemini/v1beta/index.ts. These additions improve code readability and API documentation. There are no review comments, so I have no feedback to provide.

@shettyvarun268
shettyvarun268 marked this pull request as ready for review August 21, 2026 21:24
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
*/
export interface AfterGenerateContentData<API extends string = string>
extends BeforeGenerateContentData<API> {
/** The model's response payload (available for afterGenerateContent only). */

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Again

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same as my comment above... we don't need this here in the source code (and resulting ref docs)

@egilmorez egilmorez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
*/
export interface AfterGenerateContentData<API extends string = string>
extends BeforeGenerateContentData<API> {
/** The model's response payload (available for afterGenerateContent only). */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same as my comment above... we don't need this here in the source code (and resulting ref docs)

Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
Comment thread src/v2/providers/ai/index.ts Outdated
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.

5 participants