graph.build_vertex的被调用代码路径有:
graph/base.py: process
simple run接口
arun_flow_from_json就是提供的直接run json的命令
flow_as_tool/run_flow
等功能时调用graph/base.py: astep
chat.py: @router.post("/build/{flow_id}/flow") build接口
async def build_flow(
chat.py: @router.post("/build/{flow_id}/vertices/{vertex_id}", deprecated=True) 单独build顶点的接口
async def build_vertex(
为啥在simpe_agent这个flow里, 点三角按钮和在playground里不一样? 后者错误的嵌套进去了??
async with self._tracing_service.trace_context(self, self.trace_name, inputs, metadata):
results, artifacts = await self._build_results()
self._tracing_service.set_outputs(self.trace_name, results)
方法一, 不要get_last_span了, 目前没有啥嵌套的情况(只有callback,但也处理了)
build和run的关系?