feat: 为 AgentCard 与 skills 显式声明 inputModes / outputModes#365
Closed
liujuanjuan1984 wants to merge 1 commit intomainfrom
Closed
feat: 为 AgentCard 与 skills 显式声明 inputModes / outputModes#365liujuanjuan1984 wants to merge 1 commit intomainfrom
liujuanjuan1984 wants to merge 1 commit intomainfrom
Conversation
Collaborator
Author
|
按当前讨论结论关闭:该改动在 AgentCard schema 与 media mode 语义上存在回退,不继续推进。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
本 PR 为
opencode-a2a暴露的 AgentCard 与 skill-level metadata 显式补齐了inputModes与outputModes。变更详情
OpencodeAgentCard子类,增加了顶层inputModes与outputModes字段(原本a2a-sdk中仅有default_前缀的版本)。build_agent_card中显式填充这些字段。opencode.sessions.query技能增加了text/plain和application/octet-stream作为输入模式(支持prompt_async中的 text/file parts)。opencode.sessions.query技能增加了text/plain作为输出模式(支持获取包含文本部分的会话消息)。tests/server/test_agent_card.py以验证技能级别的模式声明。tests/server/test_transport_contract.py以验证 JSON 响应中存在顶层inputModes和outputModes。相关 Issue
Closes #362