Skip to content

[Priority: Med] [Feature/Contracts] 显式收敛 opencode.sessions.prompt_async 的 subtask 输入契约 #347

@liujuanjuan1984

Description

@liujuanjuan1984

背景

  • 当前 opencode.sessions.prompt_async 已经接受 subtask part 形状,但 Agent Card / OpenAPI / guide 仍未显式声明该输入契约。
  • 这会让 coding agent / orchestration client 面临“能力存在但不可发现”的状态。

范围

  • 明确是否将 subtask 作为稳定公开能力暴露
  • 若保留,补齐 machine-readable contract、OpenAPI example、guide 与测试
  • 若暂不保留,显式拒绝该 shape,避免隐藏能力持续存在

目标

  • prompt_asyncsubtask 语义在实现、契约与文档之间一致
  • 下游 agent 能通过声明式方式发现该能力,而不是依赖试探调用

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions