(overrides: Partial<AiToolExecuteRequest> = {})
| 6 | import { buildToolExecutionContext, executeRegistryTool } from './tool-executor-core' |
| 7 | |
| 8 | function makeRequest(overrides: Partial<AiToolExecuteRequest> = {}): AiToolExecuteRequest { |
| 9 | return { |
| 10 | testId: 't1', |
| 11 | toolName: 'semantic_search_current_chat', |
| 12 | params: { query: '排期' }, |
| 13 | sessionId: 'sess-1', |
| 14 | abortSignal: new AbortController().signal, |
| 15 | ...overrides, |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | describe('tool-executor-core context injection', () => { |
| 20 | it('buildToolExecutionContext forwards semanticIndexService and request identity', () => { |
no outgoing calls
no test coverage detected