MCPcopy Create free account
hub / github.com/apache/maka / execute

Function execute

packages/code-mode/src/__tests__/code-mode.test.ts:6–13  ·  view source on GitHub ↗
(code: string, input: Partial<Omit<ExecuteCodeCellInput, 'code'>> = {})

Source from the content-addressed store, hash-verified

4import { type ExecuteCodeCellInput, executeCodeCell, serializedByteLength } from '../index.js';
5
6function execute(code: string, input: Partial<Omit<ExecuteCodeCellInput, 'code'>> = {}) {
7 return executeCodeCell({
8 code,
9 tools: [],
10 callTool: async () => null,
11 ...input,
12 });
13}
14
15test('counts the bounded JSON representation used at the tool boundary', () => {
16 let inspectedPastLimit = false;

Callers 2

code-mode.test.tsFile · 0.70
runFunction · 0.70

Calls 1

executeCodeCellFunction · 0.85

Tested by

no test coverage detected