You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用TypeScript LlamaIndex时遭遇No current context found Error问题求助

使用TypeScript LlamaIndex时遭遇No current context found Error问题求助

我在使用TypeScript版本的LlamaIndex时碰到了个棘手的问题,想请大家帮忙支支招。

我的代码片段是这样的:

const { stream, sendEvent } = workflow.createContext();      
sendEvent(startEvent.with(input));

可运行后一直弹出错误:No current context found Error——我明明已经创建了上下文啊,实在搞不懂哪里出问题了。

后来我试着在创建第一个状态的时候加了日志排查,能确认状态确实创建成功了,但还是会抛出这个错误,具体的错误详情如下:

Error details: No current context found Error: No current context found     at getContext (/node_

有没有大佬遇到过类似的情况,或者能给我指个排查的方向呀?

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.08 12:54:31