MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / makeRequest

Function makeRequest

apps/desktop/main/ai/tools/tool-executor-core.test.ts:8–17  ·  view source on GitHub ↗
(overrides: Partial<AiToolExecuteRequest> = {})

Source from the content-addressed store, hash-verified

6import { buildToolExecutionContext, executeRegistryTool } from './tool-executor-core'
7
8function 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
19describe('tool-executor-core context injection', () => {
20 it('buildToolExecutionContext forwards semanticIndexService and request identity', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected