ag-ui-protocol / ag-ui-protocol/ag-ui

[Feature]: Support for outputSchema in Tool interface

未關閉
#1,519 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Python
星號
15.9k
分支
1.4k
平均合併
1 天 17 小時
30 天內合併 PR
163

描述

### Pre-flight Checklist

- [x] I have searched existing issues and this hasn't been requested yet.

### Problem or Motivation

Hello,

It is possible in [MCP tools](https://modelcontextprotocol.io/specification/2025-06-18/server/tools#tool) to provide both an input schema and an [output schema](https://modelcontextprotocol.io/specification/2025-06-18/server/tools#output-schema).

But the [`Tool` interface](https://github.com/ag-ui-protocol/ag-ui/blob/b80612d9bd7a25a13df3aaa751ff048dfe5b8c7a/sdks/typescript/packages/core/src/types.ts#L186-L191) exposed by AG-UI:
- does not use the same property names as the MCP spec
- in particular, does not support `outputSchema`

Would it be possible to add support for `outputSchema` ? I believe this could be useful to let the LLM know what it can expect as output of a given tool call.

Also, why not align on the MCP spec ?

Thank you !

### Proposed Solution

Align on the MCP spec for tools, and in particular support `outputSchema`.

### Alternatives Considered

_No response_

### Additional Context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。