Skip to main content

面向LLM的工作流图嵌套调度框架

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 agent_command

已完成: memory(更新context) | actions(修改图结构) | add_context(注入接口对象) | 可扩展

二、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.3.tar.gz (51.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.3-py3-none-any.whl (56.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agent_os2-1.2.3.tar.gz
Algorithm Hash digest
SHA256 a89ee73ebcd9f626ceea7f9ae126e17bd93ce09a0855e8064f9b77db75b0c2e6
MD5 d80a724658a81acf382cbcf472789a39
BLAKE2b-256 8061d757ee211e827c5fc89e88d1bcbb0c660d7eb513c5183ed0c58749ced296

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for agent_os2-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 be5f170fb1b8f0eb83255b3dfe4174121558a9c3a800f5e3163948e8948b7358
MD5 9ab45edbd712a21881f6f82c23798938
BLAKE2b-256 52ce68baf7094932783dcbed58885d0716fd06abc850e02bf1a52352fd1f6a1d

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