mlld
Version:
mlld: llm scripting language
22 lines (20 loc) • 775 B
JavaScript
import { isStructuredValue, ensureStructuredValue } from './chunk-CQPPOI5P.mjs';
import { __name } from './chunk-NJQWMXLH.mjs';
// interpreter/utils/structured-exec.ts
function wrapExecResult(value, options) {
if (isStructuredValue(value)) {
if (options?.type || options?.text) {
return ensureStructuredValue(value, options?.type, options?.text);
}
return value;
}
return ensureStructuredValue(value, options?.type, options?.text);
}
__name(wrapExecResult, "wrapExecResult");
function wrapPipelineResult(value, options) {
return wrapExecResult(value, options);
}
__name(wrapPipelineResult, "wrapPipelineResult");
export { wrapExecResult, wrapPipelineResult };
//# sourceMappingURL=chunk-GRNEVFPC.mjs.map
//# sourceMappingURL=chunk-GRNEVFPC.mjs.map