chore(lint): burn down remaining warnings to zero
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
import { describe, it, expect, vi } from 'vitest';
|
||||
import { NativeAgent } from './agent.js';
|
||||
import type { ModelClient, ChatResponse } from '../../models/types.js';
|
||||
import type { ModelClient, ChatRequest, ChatResponse } from '../../models/types.js';
|
||||
import { ToolRegistry, ToolExecutor } from '../../tools/index.js';
|
||||
import { HookEngine } from '../../hooks/index.js';
|
||||
import type { Tool, ToolResult } from '../../tools/index.js';
|
||||
import type { Tool } from '../../tools/index.js';
|
||||
|
||||
describe('NativeAgent', () => {
|
||||
const createMockClient = (): ModelClient => ({
|
||||
@@ -197,7 +197,7 @@ describe('NativeAgent tool loop', () => {
|
||||
it('nudges model after same tool called too many times with different args', async () => {
|
||||
let callCount = 0;
|
||||
const mockClient: ModelClient = {
|
||||
chat: vi.fn().mockImplementation((req: any) => {
|
||||
chat: vi.fn().mockImplementation((req: ChatRequest) => {
|
||||
callCount++;
|
||||
// After nudge message, model should respond with text
|
||||
const lastMsg = req.messages[req.messages.length - 1];
|
||||
|
||||
Reference in New Issue
Block a user