Repository navigation
Releases: openJiuwen-ai/agent-infer
Releases · openJiuwen-ai/agent-infer
Release list
AgentInfer 0.2.0
Highlights / 亮点
- One-flag agent-aware serving:
vllm serve MODEL --agentinfernow injects the agent-aware scheduler (async or sync), identity & lifecycle middleware, and the embedded Progress-TTL controller in a single step. Explicit long-form options remain supported. - Trace Replay benchmarks: AgentBench replay reconstructs sessions, actors, token targets, and dependencies from a captured
requests.jsonl— no prompt plaintext stored — with cold-start reproducibility validation, now supporting TraceLab and AgentX traces plus bundled default trace datasets. - AgentRouter WASM affinity: new
agent_hint_affinityWASM guest for the upstream Router--wasm-middlewarehost (native patch kept only foragent_hint_token_offsets). - Bilingual Diátaxis docs: mirrored 中文/English documentation with new deployment guides (vLLM-Router, vLLM-Semantic-Router, CI/CD).
Installation
Install from PyPI into the same Python environment as vLLM (Python 3.10+):
python -m pip install agentinferThen start agent-aware serving with one flag:
vllm serve MODEL --agentinfer- PyPI: https://pypi.org/project/agentinfer/
- Source / wheels:
git clone https://github.com/openJiuwen-ai/agent-infer.git && python -m pip install -e .
Added
vllm serve MODEL --agentinfersingle-flag serving path; the lifecycle socket defaults when unset and conflicting--scheduler-clsoptions exit with code 2. Verified end-to-end on GPU (tests/agentcache/entrypoints/test_serve_flag_e2e.py); parser factory, schedulerschedule(), and prefix-lookup observer tolerate current and older vLLM layouts.- AgentBench: full benchmark + trace replay migration; TraceLab and AgentX replay support; default trace datasets; replay counts complete conversations with the configured chat template via a validated local tokenizer.
- Calibration tools for vLLM prefill and decode profiles under
tools/calibration/. - WASM
agent_hint_affinityguest underagentinfer/agentrouter/agent_hint_affinity; optional native patch foragent_hint_token_offsetsunderagentinfer/agentrouter/patches. - Mirrored Chinese/English docs reorganized with the Diátaxis framework; vLLM-Router / vLLM-Semantic-Router / CI-CD deployment docs.
- Migrated E2E use-case test suite.
Changed
- Replay current-turn calibration preserves historical messages and requires exact input lengths; prefix clipping checks longest-to-shortest prefixes to handle nonmonotone token counts; nonzero calibration tolerance is now rejected instead of silently normalized.
- Converted Trace IR manifests identify the converter by name without a separate version label.
- Refined the Progress-TTL policy and stabilized force-resume deadlines.
- Reorganized the README into overview, core features (with architecture diagram), requirements, installation, and Quick Start.
Fixed
- DSH hot-module-reload error.
- Benchmark runs now preserve token targets and validate complete runs; tokenizer discovery errors close the HTTP client before propagating.
Removed (breaking)
- Removed the legacy
AgentAwareScheduler/AgentAwareQueuecompatibility surfaces, the import-timeEngineArgspatch that defaultedscheduler_cls, and theagentinfer.LLMpassthrough subclass. Enable agent-aware serving explicitly viavllm serve MODEL --agentinferor the long-form scheduler/middleware options; other commands delegate to upstream vLLM unchanged.
Upgrade notes: if you relied on the implicit agent-aware scheduler default or agentinfer.LLM, switch to the --agentinfer flag or explicit --scheduler-cls/middleware options. Install the agentinfer-0.2.0 wheel into your vLLM environment.
中文说明
安装
在 vLLM 所在的 Python 环境(Python 3.10+)中从 PyPI 安装:
python -m pip install agentinfer随后一键启动智能体感知服务:
vllm serve MODEL --agentinfer- PyPI 地址:https://pypi.org/project/agentinfer/
- 源码 / wheel 包:
git clone https://github.com/openJiuwen-ai/agent-infer.git && python -m pip install -e .
主要变化
- 单标志智能体感知服务:
vllm serve MODEL --agentinfer一键注入智能体感知调度器(同步/异步)、身份与生命周期中间件及内嵌 Progress-TTL 控制器;显式长选项仍可用,冲突的--scheduler-cls以退出码 2 报错。 - 轨迹回放基准:从采集的
requests.jsonl重建会话、执行者、token 目标与依赖关系(不存取原始 Prompt 明文),支持冷启动可复现校验;新增 TraceLab 与 AgentX 回放支持,并内置默认轨迹数据集。 - AgentRouter WASM 亲和:新增
agent_hint_affinityWASM guest,对接上游 Router--wasm-middleware宿主;原生补丁仅保留agent_hint_token_offsets。 - 中英双语文档:按 Diátaxis 框架重组,新增 vLLM-Router / vLLM-Semantic-Router / CI-CD 部署文档。
破坏性变更
- 移除旧版
AgentAwareScheduler/AgentAwareQueue兼容入口、默认scheduler_cls的导入期EngineArgs补丁以及agentinfer.LLM透传子类。请改用--agentinfer标志或显式调度器/中间件长选项启用;其余命令原样透传上游 vLLM。
完整的更新日志:0.1.0...0.2.0