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

[Bug]: (langgraph) When resuming interrupts, langgraph ag-ui adapter should not send input and resume command to langgraph server at the same time

Đang mở
#2,173 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
15.9k
Fork
1.4k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
163

Mô tả

### Describe the Bug

In langgraph typescript integration , https://github.com/ag-ui-protocol/ag-ui/blob/main/integrations/langgraph/typescript/src/agent.ts#L807
```ts
const payload: Record = {
...restProps,
command: effectiveCommand,
streamMode,
input: payloadInput,
config: configForPayload,
...(hasContext ? { context: mergedContext } : {}),
};
```
when resuming interrupts langgraph ag-ui adapter should not send input and resume command to langgraph server at the same time

```jsonc
// POST /threads/{id}/runs/stream — what the adapter sends on resume
{
"assistant_id": "…",
"input": { "messages": [ /* the entire conversation, redundantly */ ] },
"command": { "resume": { "parameters": [...], "filters": [...] } },
"stream_mode": ["messages-tuple", "values", "custom", "updates"],
...
}
```
Semantically, input ("start a new run with this state") and command ("resume the paused run with this value") are contradictory instructions. Aegra rejects the pair with HTTP 422.

### Steps to Reproduce

1. useInterrupt in react with copilotkit,
2. typescript copilotkit-runtime with LanggraphAgent
3. Aegra langgraph server
4. when resuming user get this Aegra error : "Value error, Cannot specify both 'input' and 'command' - they are mutually exclusive"}]

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.