mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-22 01:37:50 +00:00
Changes to add tool_type as dimension (#6538)
Co-authored-by: Ravikant Agarwal <ravikantag@google.com>
This commit is contained in:
@@ -524,6 +524,7 @@ describe('loggers', () => {
|
||||
success: true,
|
||||
decision: ToolCallDecision.ACCEPT,
|
||||
prompt_id: 'prompt-id-1',
|
||||
tool_type: 'native',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -533,6 +534,7 @@ describe('loggers', () => {
|
||||
100,
|
||||
true,
|
||||
ToolCallDecision.ACCEPT,
|
||||
'native',
|
||||
);
|
||||
|
||||
expect(mockUiEvent.addEvent).toHaveBeenCalledWith({
|
||||
@@ -587,6 +589,7 @@ describe('loggers', () => {
|
||||
success: false,
|
||||
decision: ToolCallDecision.REJECT,
|
||||
prompt_id: 'prompt-id-2',
|
||||
tool_type: 'native',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -596,6 +599,7 @@ describe('loggers', () => {
|
||||
100,
|
||||
false,
|
||||
ToolCallDecision.REJECT,
|
||||
'native',
|
||||
);
|
||||
|
||||
expect(mockUiEvent.addEvent).toHaveBeenCalledWith({
|
||||
@@ -653,6 +657,7 @@ describe('loggers', () => {
|
||||
success: true,
|
||||
decision: ToolCallDecision.MODIFY,
|
||||
prompt_id: 'prompt-id-3',
|
||||
tool_type: 'native',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -662,6 +667,7 @@ describe('loggers', () => {
|
||||
100,
|
||||
true,
|
||||
ToolCallDecision.MODIFY,
|
||||
'native',
|
||||
);
|
||||
|
||||
expect(mockUiEvent.addEvent).toHaveBeenCalledWith({
|
||||
@@ -717,6 +723,7 @@ describe('loggers', () => {
|
||||
duration_ms: 100,
|
||||
success: true,
|
||||
prompt_id: 'prompt-id-4',
|
||||
tool_type: 'native',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -726,6 +733,7 @@ describe('loggers', () => {
|
||||
100,
|
||||
true,
|
||||
undefined,
|
||||
'native',
|
||||
);
|
||||
|
||||
expect(mockUiEvent.addEvent).toHaveBeenCalledWith({
|
||||
@@ -786,6 +794,7 @@ describe('loggers', () => {
|
||||
error_type: ToolErrorType.UNKNOWN,
|
||||
'error.type': ToolErrorType.UNKNOWN,
|
||||
prompt_id: 'prompt-id-5',
|
||||
tool_type: 'native',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -795,6 +804,7 @@ describe('loggers', () => {
|
||||
100,
|
||||
false,
|
||||
undefined,
|
||||
'native',
|
||||
);
|
||||
|
||||
expect(mockUiEvent.addEvent).toHaveBeenCalledWith({
|
||||
|
||||
Reference in New Issue
Block a user