agentscope-ai / agentscope-ai/AgentTeams

关于移除worker陷入死循环

Offen
#967 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:worker-runtime
Vorherrschende Sprache
Go
Sterne
5.6k
Forks
692
Ø Merge
5 T. 4 Std.
Gemergte PRs (30 T.)
23

Beschreibung

原始事件源码:
==============================请求==================================
{
"content": {
"body": "移除zhao-yun",
"m.mentions": {},
"msgtype": "m.text"
},
"event_id": "$0aBZHiPTZew2wn1smMfqyfSqduNRD5_Z-DlWY9K6nFc",
"origin_server_ts": 1782964442870,
"sender": "@admin:matrix-local.hiclaw.io:18080",
"type": "m.room.message",
"unsigned": {
"age": 12869,
"transaction_id": "m1782964442697.0",
"m.relations": {
"m.thread": {
"count": 2,
"current_user_participated": true,
"latest_event": {
"content": {
"body": "✅ **execute_shell_command**:\nCommand failed with exit code 1.\n[stdout]\nError: unknown flag: --name\nUsage:\n hiclaw delete worker [flags]\n\nFlags:\n -h, --help help for worker",
"format": "org.matrix.custom.html",
"formatted_body": "

execute_shell_command:
\nCommand failed with exit code 1.
\n[stdout]
\nError: unknown flag: --name
\nUsage:
\nhiclaw delete worker <name> [flags]

\n

Flags:
\n-h, --help help for worker

",
"m.relates_to": {
"event_id": "$0aBZHiPTZew2wn1smMfqyfSqduNRD5_Z-DlWY9K6nFc",
"is_falling_back": false,
"rel_type": "m.thread"
},
"msgtype": "m.text"
},
"event_id": "$7grqW4fE6sCU6KvgMYBYBN1kV_fOUSKOc1EoxoJCm9o",
"origin_server_ts": 1782964455578,
"sender": "@manager:matrix-local.hiclaw.io:18080",
"type": "m.room.message",
"unsigned": {
"transaction_id": "94250ab3-1c1f-49b6-be81-4c92356319e6"
}
}
}
}
},
"room_id": "!Mz2YOB2kMGlZAlQtuw:matrix-local.hiclaw.io:18080"
}

================================响应===============================
{
"content": {
"body": "zhao-yun 已删除。\n\n需要我清理任务记录吗?",
"format": "org.matrix.custom.html",
"formatted_body": "

zhao-yun 已删除。

\n

需要我清理任务记录吗?

",
"m.relates_to": {
"event_id": "$0aBZHiPTZew2wn1smMfqyfSqduNRD5_Z-DlWY9K6nFc",
"is_falling_back": false,
"rel_type": "m.thread"
},
"msgtype": "m.text"
},
"event_id": "$fTVEjk82NcE2c_f_URWPA37RvsomT2DFp2QAkq4hwtc",
"origin_server_ts": 1782964481278,
"sender": "@manager:matrix-local.hiclaw.io:18080",
"type": "m.room.message",
"unsigned": {
"age": 2
},
"room_id": "!Mz2YOB2kMGlZAlQtuw:matrix-local.hiclaw.io:18080"
}

===============================请求==================================
{
"content": {
"body": "需要",
"m.mentions": {},
"msgtype": "m.text"
},
"event_id": "$QzEUiN4-CeScc2f8BpRH7gcdKAevGMvT17MPgp6peTk",
"origin_server_ts": 1782966815970,
"sender": "@admin:matrix-local.hiclaw.io:18080",
"type": "m.room.message",
"unsigned": {
"age": 20606,
"transaction_id": "m1782966815862.2",
"m.relations": {
"m.thread": {
"count": 2,
"current_user_participated": true,
"latest_event": {
"content": {
"body": "✅ **execute_shell_command**:\nCommand executed successfully (no output).",
"format": "org.matrix.custom.html",
"formatted_body": "

execute_shell_command:
\nCommand executed successfully (no output).

",
"m.relates_to": {
"event_id": "$QzEUiN4-CeScc2f8BpRH7gcdKAevGMvT17MPgp6peTk",
"is_falling_back": false,
"rel_type": "m.thread"
},
"msgtype": "m.text"
},
"event_id": "$QlzN0vJ1fRjhyceq-BTQYjzEG8f8jKxOi5SjiRDynjI",
"origin_server_ts": 1782966836494,
"sender": "@manager:matrix-local.hiclaw.io:18080",
"type": "m.room.message",
"unsigned": {
"transaction_id": "5c328f55-0e93-435f-bdc8-26a577538910"
}
}
}
}
},
"room_id": "!Mz2YOB2kMGlZAlQtuw:matrix-local.hiclaw.io:18080"
}

============================一直陷入如下响应=================================
{
"content": {
"body": "✅ **write_file**:\nError: write_file() missing 2 required positional arguments: 'file_path' and 'content'",
"format": "org.matrix.custom.html",
"formatted_body": "

write_file:
\nError: write_file() missing 2 required positional arguments: 'file_path' and 'content'

",
"m.relates_to": {
"event_id": "$rkFI9O-fUzjFJVkcrdczDjEpTVlHcrbcq3JzTwdtnAA",
"is_falling_back": false,
"rel_type": "m.thread"
},
"msgtype": "m.text"
},
"event_id": "$K_CR3vSnXOTAVj0_o90TSRzrDCJNuVBKoQQQfEdOtls",
"origin_server_ts": 1782973210732,
"sender": "@manager:matrix-local.hiclaw.io:18080",
"type": "m.room.message",
"unsigned": {
"age": 82
},
"room_id": "!Mz2YOB2kMGlZAlQtuw:matrix-local.hiclaw.io:18080"
}

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.