Observed since 20 Oct, 18:32 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
actionflow
LLM agent workflows
actionflow: A Human-Centric Framework for Large Language Model Agent Workflows, build your agent workflows quickly
actionflow: 快速构建你自己的Agent工作流


Actionflow是一个Agent工作流构建工具,功能:
pip install -U actionflow
or
git clone https://github.com/shibing624/actionflow.git
cd actionflow
pip install .
复制example.env文件为.env,并粘贴OpenAI API key或者Moonshoot API key。
运行Agent示例,自动调用google搜索工具:
from actionflow import Assistant, OpenAILLM, AzureOpenAILLM
from actionflow.tools.search_serper import SearchSerperTool
m = Assistant(
llm=AzureOpenAILLM(),
description="You are a helpful ai assistant.",
show_tool_calls=True,
# Enable the assistant to search the knowledge base
search_knowledge=False,
tools=[SearchSerperTool()],
# Enable the assistant to read the chat history
read_chat_history=True,
debug_mode=True,
)
print("LLM:", m.llm)
print(m.run("介绍林黛玉", stream=False))
print(m.run("北京最近的新闻", stream=False))
print(m.run("我前面问了啥", stream=False))
运行工作流(Workflow)示例:
如果你在研究中使用了actionflow,请按如下格式引用:
APA:
Xu, M. actionflow: A Human-Centric Framework for Large Language Model Agent Workflows (Version 0.0.2) [Computer software]. https://github.com/shibing624/actionflow
BibTeX:
@misc{Xu_actionflow,
title={actionflow: A Human-Centric Framework for Large Language Model Agent Workflows},
author={Xu Ming},
year={2024},
howpublished={\url{https://github.com/shibing624/actionflow}},
}
授权协议为 The Apache License 2.0,可免费用做商业用途。请在产品说明中附加actionflow的链接和授权协议。
项目代码还很粗糙,如果大家对代码有所改进,欢迎提交回本项目,在提交之前,注意以下两点:
tests添加相应的单元测试python -m pytest来运行所有单元测试,确保所有单测都是通过的之后即可提交PR。
Thanks for their great work!
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
sdist · 90.7 KB · Python source
Observed since 20 Oct, 18:32 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:bdd9ee9b975ca295a1e5d4c05e904e416b092ff35c701bb44e77c9dd596ea18b