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

[Feature]: send only last user message

未關閉
#1,386 1 則留言 1 個 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

Hi! Your docs say that `RunAgentInput` should contain full conversation:
- https://docs.ag-ui.com/sdk/python/core/types#runagentinput
- https://docs.ag-ui.com/sdk/js/core/types#runagentinput

I think it would be great to support a lightweight regime when the UI sends request to agent by a last user message. It is often not necessary to send the whole `RunAgentInput`.

For example, I am working on the project, where I don't let frontend to modify the state and use latter one only for streaming progress from backend. In this setting, everything is needed (conversation history and agent state) is already available for agent, so sending it again seems unnatural, because it requires either checking that the persisted objects are in sync with the frontend-delivered input or just ignoring it.

Maybe I am wrong or not attentive enough to spot this feature in the docs, or interpreted these docs too strictly.

### Proposed Solution

dunno

### Alternatives Considered

_No response_

### Additional Context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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