(
req: GenerateContentParameters,
userPromptId: string,
)
| 74 | } |
| 75 | |
| 76 | async generateContent( |
| 77 | req: GenerateContentParameters, |
| 78 | userPromptId: string, |
| 79 | ): Promise<GenerateContentResponse> { |
| 80 | const resp = await this.requestPost<CaGenerateContentResponse>( |
| 81 | 'generateContent', |
| 82 | toGenerateContentRequest( |
| 83 | req, |
| 84 | userPromptId, |
| 85 | this.projectId, |
| 86 | this.sessionId, |
| 87 | ), |
| 88 | req.config?.abortSignal, |
| 89 | ); |
| 90 | return fromGenerateContentResponse(resp); |
| 91 | } |
| 92 | |
| 93 | async onboardUser( |
| 94 | req: OnboardUserRequest, |
nothing calls this directly
no test coverage detected