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

Unable to Render UI Resource from MCP Response via Agno Agent - JSON Response Always Formatted as Sentence

オープン
#736 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
Integration question
主要言語
Python
スター
15.9k
フォーク
1.4k
平均マージ
1日 17時間
マージ済み PR(30日)
163

説明

We are using the agno integration with ag-ui for creating an agent in Python. On the client side, we use `@ag-ui/agno` to interact with the agno Python agent.

We have a use case involving [mcp-ui](https://www.npmjs.com/package/@mcp-ui/client), where one of the tool calls returns a UI resource that needs to be rendered by the client. A sample response from MCP is:

```
{
"content": [
{
"type": "resource",
"resource": {
"uri": "ui://wave-templates/list",
"mimeType": "text/html",
"text": "hello world!"
}
}
]
}
```

This response is sent to the agno agent. However, even when we explicitly prompt the agent not to format the response, the agent does not return the raw JSON. Instead, it always returns a formatted sentence, which prevents us from rendering the UI component as intended.

#### Question:
Is there a recommended way to handle this scenario so that the agent returns the raw JSON response (or at least the `resource` object) without formatting it as a sentence? Any guidance or best practices would be appreciated.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。