MCPcopy Index your code
hub / github.com/microsoft/TypeChat / evaluate

Function evaluate

typescript/src/ts/program.ts:154–158  ·  view source on GitHub ↗
(expr: unknown)

Source from the content-addressed store, hash-verified

152 return results.length > 0 ? results[results.length - 1] : undefined;
153
154 async function evaluate(expr: unknown): Promise<unknown> {
155 return typeof expr === "object" && expr !== null ?
156 await evaluateObject(expr as Record<string, unknown>) :
157 expr;
158 }
159
160 async function evaluateObject(obj: Record<string, unknown>) {
161 if (obj.hasOwnProperty("@ref")) {

Callers 1

evaluateJsonProgramFunction · 0.85

Calls 1

evaluateObjectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…