Title: anthropic call no arguments function error · Issue #44 · aiscriptdev/aiscript · GitHub
Open Graph Title: anthropic call no arguments function error · Issue #44 · aiscriptdev/aiscript
X Title: anthropic call no arguments function error · Issue #44 · aiscriptdev/aiscript
Description: Request: {"model":"anthropic/claude-3.7-sonnet:thinking","messages":[{"role":"system","content":"这是一个5x5的迷宫网格,起点位于坐标[1, 4],终点位于坐标[2, 2]。\n 迷宫中分布着若干墙壁,具体位置为: [(0, 1), (0, 2), (0, 3), (1, 0), (1, 1), (1, 2), (1, 3), (3, 0), (3, 1), (3, 3),...
Open Graph Description: Request: {"model":"anthropic/claude-3.7-sonnet:thinking","messages":[{"role":"system","content":"这是一个5x5的迷宫网格,起点位于坐标[1, 4],终点位于坐标[2, 2]。\n 迷宫中分布着若干墙壁,具体位置为: [(0, 1), (0, 2), (0, 3), (1, 0), (1, 1),...
X Description: Request: {"model":"anthropic/claude-3.7-sonnet:thinking","messages":[{"role":"system","content":"这是一个5x5的迷宫网格,起点位于坐标[1, 4],终点位于坐标[2,...
Opengraph URL: https://github.com/aiscriptdev/aiscript/issues/44
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"anthropic call no arguments function error","articleBody":"Request: {\"model\":\"anthropic/claude-3.7-sonnet:thinking\",\"messages\":[{\"role\":\"system\",\"content\":\"这是一个5x5的迷宫网格,起点位于坐标[1, 4],终点位于坐标[2, 2]。\\n 迷宫中分布着若干墙壁,具体位置为: [(0, 1), (0, 2), (0, 3), (1, 0), (1, 1), (1, 2), (1, 3), (3, 0), (3, 1), (3, 3), (3, 4), (4, 2), (4, 3)]。\\n 迷宫的字符表示:\\n # # # . #\\n # # # # s\\n . . e . .\\n # # . # #\\n . . # # .\\n 请使用工具走迷宫,从起点(s)走到终点(e),#表示墙,不要走出5x5网格,坐标的最小值位于左上角[0,0],最大值位于右下角[4,4]。\\n 详细的规则或步骤如下:\\n 1. 首先记录开始点和结束点,调用 record_start_end 工具。\\n 2. 依据实际情况,请使用 up 向上走 或者 down 向下走 或者 left 向左走 或者 right 向右走 工具走一步。\\n 3. 调用 is_target 工具判断是否到达终点。\\n 4. 如果调用 is_target 工具后返回【1】表示到达终点,否则,请重试第2和3步骤,直到重复执行20步后终止。\\n \"},{\"role\":\"user\",\"content\":\"让我们走出指令中的迷宫\"},{\"role\":\"assistant\",\"content\":\"我将帮您走出这个迷宫。根据指令,我需要从起点[1, 4]走到终点[2, 2]。\\n\\n首先,我需要记录开始点和结束点:\",\"tool_calls\":[{\"id\":\"toolu_vrtx_011kcCRHX9oVBJfmx8NAaTtR\",\"type\":\"function\",\"function\":{\"name\":\"record_start_end\",\"arguments\":\"{\\\"json_string\\\": \\\"{\\\\\\\"start_x\\\\\\\":1,\\\\\\\"start_y\\\\\\\":4,\\\\\\\"target_x\\\\\\\":2,\\\\\\\"target_y\\\\\\\":2}\\\"}\"}}]},{\"role\":\"tool\",\"content\":\"nil\",\"name\":\"record_start_end\",\"tool_call_id\":\"toolu_vrtx_011kcCRHX9oVBJfmx8NAaTtR\"}],\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"left\",\"description\":\"向左\",\"parameters\":{\"type\":\"object\",\"properties\":{},\"required\":[]}}},{\"type\":\"function\",\"function\":{\"name\":\"up\",\"description\":\"向上\",\"parameters\":{\"type\":\"object\",\"properties\":{},\"required\":[]}}},{\"type\":\"function\",\"function\":{\"name\":\"record_start_end\",\"description\":\"记录开始点和结束点, 输入参数为json字符串如:{\\\"start_x\\\":1,\\\"start_y\\\":4,\\\"target_x\\\":2,\\\"target_y\\\":2}\",\"parameters\":{\"type\":\"object\",\"properties\":{\"json_string\":{\"type\":\"string\"}},\"required\":[\"json_string\"]}}},{\"type\":\"function\",\"function\":{\"name\":\"right\",\"description\":\"向右\",\"parameters\":{\"type\":\"object\",\"properties\":{},\"required\":[]}}},{\"type\":\"function\",\"function\":{\"name\":\"down\",\"description\":\"向下\",\"parameters\":{\"type\":\"object\",\"properties\":{},\"required\":[]}}},{\"type\":\"function\",\"function\":{\"name\":\"is_target\",\"description\":\"判断是否到达终点,返回 1 到达;0 未到达\",\"parameters\":{\"type\":\"object\",\"properties\":{},\"required\":[]}}}],\"parallel_tool_calls\":true,\"tool_choice\":\"auto\"}\nResponse: {\"role\":\"assistant\",\"content\":\"我会继续帮您走出迷宫。现在已经记录了开始点和结束点,我需要开始移动。根据迷宫布局,我将规划一条从[1,4]到[2,2]的路径。\\n\\n首先,我向右移动一步:\",\"tool_calls\":[{\"id\":\"toolu_vrtx_01HxhoZHdBBxtoqaL7PZA6Wd\",\"type\":\"function\",\"function\":{\"name\":\"right\",\"arguments\":\"\"}}]}\n\nerror:\n\nthread 'tokio-runtime-worker' panicked at aiscript-vm/src/ai/agent.rs:213:18:\ncalled `Result::unwrap()` on an `Err` value: Error(\"EOF while parsing a value\", line: 1, column: 0)\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\n\nthread 'main' panicked at aiscript/src/main.rs:81:18:\ncalled `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(11), \"called `Result::unwrap()` on an `Err` value: Error(\\\"EOF while parsing a value\\\", line: 1, column: 0)\", ...)","author":{"url":"https://github.com/xufanghui","@type":"Person","name":"xufanghui"},"datePublished":"2025-03-30T13:08:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/44/aiscript/issues/44"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:46f6c4cf-01b1-ae37-e544-0238daac8129 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A70:3730FD:70F1C8:9D0A11:6A604089 |
| html-safe-nonce | 2858f6256553336ef3d8cd9bfcd1d92823cbcc884fe5f22e20eb6e1125aeb38d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTcwOjM3MzBGRDo3MEYxQzg6OUQwQTExOjZBNjA0MDg5IiwidmlzaXRvcl9pZCI6IjEyNDAzMjgyMDU0NDM4MDk0MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b444aac2d1eb73bd229262354f33d407ad805140d63d88faf8ee5197bcbc77a3 |
| hovercard-subject-tag | issue:2958866811 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aiscriptdev/aiscript/44/issue_layout |
| twitter:image | https://opengraph.githubassets.com/053bb110c87374a3d89e974b1b31c6096f56b088c94d114ecc20245061879a0d/aiscriptdev/aiscript/issues/44 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/053bb110c87374a3d89e974b1b31c6096f56b088c94d114ecc20245061879a0d/aiscriptdev/aiscript/issues/44 |
| og:image:alt | Request: {"model":"anthropic/claude-3.7-sonnet:thinking","messages":[{"role":"system","content":"这是一个5x5的迷宫网格,起点位于坐标[1, 4],终点位于坐标[2, 2]。\n 迷宫中分布着若干墙壁,具体位置为: [(0, 1), (0, 2), (0, 3), (1, 0), (1, 1),... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xufanghui |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/aiscriptdev/aiscript git https://github.com/aiscriptdev/aiscript.git |
| octolytics-dimension-user_id | 185588023 |
| octolytics-dimension-user_login | aiscriptdev |
| octolytics-dimension-repository_id | 875138407 |
| octolytics-dimension-repository_nwo | aiscriptdev/aiscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 875138407 |
| octolytics-dimension-repository_network_root_nwo | aiscriptdev/aiscript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9824515e740d83d5eb82168a089b806ab0fe04a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width