Skip to main content

A lightweight and composable graph-structured workflow engine for LLM automation

Project description

AgentOS2 项目脚手架

LLM驱动的智能工作流系统,支持图结构编排、流程嵌套、双层并发架构

📌 项目结构

agent_os2/
├── agent_os/              # 核心框架
│   ├── base_agent.py      # Agent抽象
│   ├── flow.py            # DAG调度器  
│   ├── base_model/        # 模型接口
│   ├── utility.py         # 工具函数
│   └── visualize.py       # 可视化
├── agents/examples/       # 示例
├── agent_settings.json    # Agent配置
├── model_settings.json    # 模型配置
└── DEVELOPING_GUIDE.md    # 开发指南

🚀 核心特性

一、BaseAgent

1.1 生命周期

已完成: 标准流程(激活→批处理→执行→下发) | 三阶段(setup/pipeline/post_process) | 纯函数特性

1.2 上下文系统

已完成: Settings(构建时继承) | Args/SharedContext/ExtraContexts(运行时) | 模板系统({src.*}/{ctx.*}) | 深度合并
未完成: 上下文压缩 | RAG/KAG集成

1.3 批处理

已完成: batch_field | 批处理索引 | 双层并发架构

1.4 模型交互

已完成: 统一接口 | 智能重试 | 超时控制 | 严格模式 | JSON校验 | 模型配置优先级加载 ⏳ 未完成: 模型Tag精选 | 动态切换

1.5 日志系统

已完成: user_info | debug_info | 批处理标识 | 即时输出

1.6 command_to_flow

已完成: memory(更新context) | actions(修改图结构) | 条件执行 | 可扩展

二、Flow

2.1 图结构调度

已完成: 有向图依赖 | 拓扑并发 | 动态修改 | 循环/条件分支
未完成: 分布式调度 | 远程执行

2.2 Flow功能

已完成: Agent/Flow一体化 | YAML DSL | 入口管理 | 别名机制 | 热重载 | Mock注入

2.3 上下文隔离

已完成: 父子隔离 | 按需继承(expected_shared_context_keys) | 动态更新 | 优化传递

2.4 执行统计

已完成: 资源限制(max_*_limit) | 性能指标 | 执行可视化 | flow_results

三、辅助系统

3.1 模型系统

已完成: Processor注册 | LLM/ImageConfig | 多模型配置 | 流式输出 | 多模态
未完成: 模型路由 | 自适应

3.2 工具函数

已完成: DSL解析 | Agent发现 | JSON解析 | 字典合并 | 模板解析
未完成: Token压缩 | RAG/KAG工具

3.3 执行接口

已完成: execute() | 可视化执行 | 单Agent测试 | 双模式 | 并发限制 | observer
未完成: 分布式执行 | MCP插件

📖 最新更新

  • 上下文传递优化: 只传递存在的键,改进get()行为

🔗 相关文档

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_os2-1.2.1.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_os2-1.2.1-py3-none-any.whl (44.5 kB view details)

Uploaded Python 3

File details

Details for the file agent_os2-1.2.1.tar.gz.

File metadata

  • Download URL: agent_os2-1.2.1.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for agent_os2-1.2.1.tar.gz
Algorithm Hash digest
SHA256 ecd2c197225889ce7c44758e39ce10f706bc8a085a280037e6ba05aadc53015d
MD5 b317e29e57dee7fd330b8ada9750b863
BLAKE2b-256 2dbd08829b868a4422caca350d79dd88ebbbb81f80380c9db9f09e343fcdc2cf

See more details on using hashes here.

File details

Details for the file agent_os2-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: agent_os2-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 44.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for agent_os2-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bea36dfc4a5da62fcd158695bf1d760376fd3872eb5d96715feed01c416632aa
MD5 924784757647671790579136b0e30c26
BLAKE2b-256 81127a6a42bceb68d3b5a0a191569469fb65d85ec59e0401b240d7b318d07e44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page