Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Failed tool calls are marked as succeeded (isError is always false)

Đang mở Phù hợp với người mới
#9,120 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
80/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
ai, backend-api-design

Hướng nghiên cứu

Bắt đầu tại agent-service/src/agent/texera-agent.ts, ở onStepFinish, sau đó đọc createErrorResult trong agent-service/src/agent/tools/tools-utility.ts để xác nhận định dạng đầu ra lỗi. Kiểm tra cách kết quả của công cụ được ghi lại và hiển thị trong lịch sử lượt; hoàn tất khi kết quả lỗi được ghi nhận là thất bại và bản tái hiện cho thấy lời gọi công cụ thất bại ở lượt tiếp theo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What happened?

When a tool call fails, the agent still marks it as succeeded.

In agent-service/src/agent/texera-agent.ts, onStepFinish sets:

isError: !!(tr.output as any)?.error,

But the tools return errors as a plain string, from createErrorResult in tools/tools-utility.ts:

export function createErrorResult(error: string): string {
  return `[ERROR] ${error}`;
}

A string has no .error field, so isError is always false. Then the turn history shows every call as - <tool> (succeeded).

Example on main: addOperator and modifyOperator both returned [ERROR] Source operator "op7" not found. Both were saved with isError: false, and the next turn showed - addOperator (succeeded) and - modifyOperator (succeeded). Together with #9115, the agent gets no sign at all that the call failed.

Expected: isError should be true when the tool returns an error, for example when the output starts with [ERROR].

Screenshots

Step 1, tool call: the result starts with [ERROR].

A-step1-toolcall.png

Step 3, what the agent was given: the same call shows as - addOperator (succeeded).

A-step3-context.png

How to reproduce?
  1. Open an empty workflow, create an agent, and send: Add a Limit operator that keeps 10 rows, and connect its input to the existing operator op7.
  2. Click "Export ReAct steps as JSON". Step 1's toolResults[0].output starts with [ERROR], but isError is false. Step 2's input shows - addOperator (succeeded).
Version/Branch

1.4.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

57faa6b

What browsers are you seeing the problem on?

Chrome

Relevant log output
agent-service/src/agent/texera-agent.ts  onStepFinish: isError: !!(tr.output as any)?.error
agent-service/src/agent/tools/tools-utility.ts:30  createErrorResult returns a string
Ngôn ngữ chính
Scala
Star
325
Fork
196
Merge trung bình
3 ngày 11 giờ
Pull request đã merge (30 ngày)
131

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/texera

Tất cả issue của apache/texera

Issue tương tự

Thêm issue về Scala

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.