Skip to content

Codex/shared context - #220

Closed
yysjasmine wants to merge 17 commits into
RLinf:mainfrom
SenseTime-FVG:codex/shared-context
Closed

yysjasmine wants to merge 17 commits into
RLinf:mainfrom
SenseTime-FVG:codex/shared-context

Conversation

@yysjasmine

Copy link
Copy Markdown

Description
统一 RPent 的初始上下文组装入口,为不同 planner 和后续自建 agent runtime 提供可复用的上下文结构。

  • 新增 ContextDocument、ContextBundle 和 assemble_context(),分别保留 prompt、query、memory、skill 和初始多模态内容。
  • CLI、Dashboard 和 EmbodiedAgent 接入统一组装流程。
  • EmbodiedAgent.run() 新增可选 memory 参数,将已筛选的 memory 作为任务参考内容传入,并保留来源信息。
  • 保持现有 planner 接口、SDK 消息映射、skill 加载方式及图像顺序;无需迁移配置,无新增依赖。
  • 更新中英文文档,补充上下文组装与入口兼容性测试。
    本次覆盖初始上下文组装,不包含自动检索、逐轮压缩或新 runtime。
    Testing
    在 WSL Ubuntu、Python 3.11 隔离环境中验证:
  • 全量单测:646 passed,1 skipped。跳过项为 RoboTwin seed-language 契约测试,原因是未安装可选 RLinf 模块。
  • pre-commit run --all-files:通过。
  • 中英文 sphinx-build -W --keep-going:均通过。
  • git diff --check:通过。
    全量单测使用 Linux 临时副本,避免 Windows CRLF 影响 shell 测试;本次改动文件与工作区一致。
    Manual verification
    Not needed。离线单测及本地 MCP 回环测试覆盖本次变更,包括 memory 分离、skill 读取失败、多模态内容传递、交互任务修改和会话交接。未运行真实模型服务、GPU、模拟器或实体机器人验证。
    Checklist
  • 代码符合项目风格要求。
  • 已更新相关中英文文档。
  • 已补充必要的测试。
  • 所有已执行的新增和现有测试均通过;1 项可选依赖测试跳过,原因已说明。

luojiapeng14 and others added 17 commits September 23, 2026 17:17
feat: add benchmark-neutral EmbodiedAgent MCP entry point
Add OpenAI and Anthropic LLM module with usage tracking
Retry transient LLM requests and log provider failures
Add RoboDojo EmbodiedAgent evaluation bridge
Isolate RoboDojo compiler caches per parallel worker
Measure and improve RoboDojo prompt caching
…ation

Improve RoboDojo multimodal cache reuse and qualify full runs
Report image policy errors without a text-only model hint
@yysjasmine yysjasmine closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants