(span: Span, request: typeof Generated.GenerateContentRequest.Encoded)
| 772 | // ============================================================================= |
| 773 | |
| 774 | const annotateRequest = (span: Span, request: typeof Generated.GenerateContentRequest.Encoded): void => { |
| 775 | addGenAIAnnotations(span, { |
| 776 | system: "gcp.gemini", |
| 777 | operation: { name: "chat" }, |
| 778 | request: { |
| 779 | model: request.model, |
| 780 | temperature: request.generationConfig?.temperature, |
| 781 | topP: request.generationConfig?.topP, |
| 782 | maxTokens: request.generationConfig?.maxOutputTokens, |
| 783 | stopSequences: request.generationConfig?.stopSequences ?? [] |
| 784 | } |
| 785 | }) |
| 786 | } |
| 787 | |
| 788 | const annotateResponse = (span: Span, response: typeof Generated.GenerateContentResponse.Type): void => { |
| 789 | const finishReasons: Array<string> = [] |
no outgoing calls
no test coverage detected
searching dependent graphs…