

























llama-agents 没有使用类似dag的套路,而是基于events,所以查看执行流程就比较重要了,官方提供了相关的包可以使用
pip install llama-index-utils-workflow
from llama_index.utils.workflow import (
draw_all_possible_flows,
draw_most_recent_execution,
)
# Draw all
draw_all_possible_flows(MyWorkflow, filename="all_paths.html")
# Draw an execution
w = MyWorkflow()
handler = w.run(topic="Pirates")
await handler
draw_most_recent_execution(handler, filename="most_recent.html")
当然llama-agents的workflow server 也是可以查看的
https://developers.llamaindex.ai/python/llamaagents/workflows/drawing/
https://developers.llamaindex.ai/python/llamaagents/workflows/
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。