mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-07 20:00:37 -07:00
Code Assist backend telemetry for user accept/reject of suggestions (#15206)
This commit is contained in:
committed by
GitHub
parent
c28ff3d5a5
commit
5d13145995
@@ -102,7 +102,10 @@ describe('CodeAssistServer', () => {
|
||||
index: 0,
|
||||
content: {
|
||||
role: 'model',
|
||||
parts: [{ text: 'response' }],
|
||||
parts: [
|
||||
{ text: 'response' },
|
||||
{ functionCall: { name: 'test', args: {} } },
|
||||
],
|
||||
},
|
||||
finishReason: FinishReason.SAFETY,
|
||||
safetyRatings: [],
|
||||
@@ -142,7 +145,10 @@ describe('CodeAssistServer', () => {
|
||||
index: 0,
|
||||
content: {
|
||||
role: 'model',
|
||||
parts: [{ text: 'response' }],
|
||||
parts: [
|
||||
{ text: 'response' },
|
||||
{ functionCall: { name: 'test', args: {} } },
|
||||
],
|
||||
},
|
||||
finishReason: FinishReason.STOP,
|
||||
safetyRatings: [],
|
||||
@@ -204,7 +210,16 @@ describe('CodeAssistServer', () => {
|
||||
const mockResponseData = {
|
||||
traceId: 'stream-trace-id',
|
||||
response: {
|
||||
candidates: [{ content: { parts: [{ text: 'chunk' }] } }],
|
||||
candidates: [
|
||||
{
|
||||
content: {
|
||||
parts: [
|
||||
{ text: 'chunk' },
|
||||
{ functionCall: { name: 'test', args: {} } },
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
sdkHttpResponse: {
|
||||
responseInternal: {
|
||||
ok: true,
|
||||
|
||||
Reference in New Issue
Block a user