@xynehq/jaf
Version:
Juspay Agent Framework - A purely functional agent framework with immutable state and composable tools
9 lines • 315 B
JavaScript
const runtimeMap = new WeakMap();
export function setToolRuntime(context, runtime) {
// Use the context object as a stable key for this run invocation
runtimeMap.set(context, runtime);
}
export function getToolRuntime(context) {
return runtimeMap.get(context);
}
//# sourceMappingURL=tool-runtime.js.map