MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / calling

Function calling

graph-ui/src/browser-ai/chat-wording.test.ts:95–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 const answer = (prompt: string, context = jsonbAggEvidence()) => relationshipAnswer(prompt, [context])!.markdown;
94 // Two callers of JSONBAgg with CALLS only, and three calls from it.
95 const calling = () => jsonbAggEvidence({ edges: [{ source: 100, target: 32360, type: 'CALLS' }, { source: 101, target: 32360, type: 'CALLS' },
96 { source: 32360, target: 7, type: 'CALLS' }, { source: 32360, target: 8, type: 'CALLS' }, { source: 32360, target: 9, type: 'CALLS' }, { source: 32360, target: 7, type: 'INHERITS' }] });
97
98 it('counts the callers it lists and gives all incoming relationships as a sentence of their own', () => {
99 expect(answer('Who calls JSONBAgg?').split('\n')[0]).toBe('11 callers (CALLS) of `JSONBAgg` in the loaded graph. All incoming: 23 relationships from 12 symbols.');

Callers 1

Calls 1

jsonbAggEvidenceFunction · 0.90

Tested by

no test coverage detected