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 摘要。