| 26 | * Interface abstracting the core functionalities for generating content and counting tokens. |
| 27 | */ |
| 28 | export interface ContentGenerator { |
| 29 | generateContent( |
| 30 | request: GenerateContentParameters, |
| 31 | userPromptId: string, |
| 32 | ): Promise<GenerateContentResponse>; |
| 33 | |
| 34 | generateContentStream( |
| 35 | request: GenerateContentParameters, |
| 36 | userPromptId: string, |
| 37 | ): Promise<AsyncGenerator<GenerateContentResponse>>; |
| 38 | |
| 39 | countTokens(request: CountTokensParameters): Promise<CountTokensResponse>; |
| 40 | |
| 41 | embedContent(request: EmbedContentParameters): Promise<EmbedContentResponse>; |
| 42 | |
| 43 | userTier?: UserTierId; |
| 44 | } |
| 45 | |
| 46 | export enum AuthType { |
| 47 | LOGIN_WITH_GOOGLE = 'oauth-personal', |
no outgoing calls
no test coverage detected