diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs index f5d876e2f..990458054 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs @@ -95,17 +95,6 @@ pub(crate) fn parse_limited_llm_tool_arguments( serde_json::from_str(arguments).map_err(|error| format!("LLM 工具参数不是有效 JSON:{error}")) } -/// Stable structured-action adapter: locate the required tool call and parse its -/// bounded JSON arguments. Prompt, schema and materialization stay in each -/// operation-specific command. -pub(crate) fn required_tool_arguments( - response: &LlmRunResponse, - tool_name: &str, -) -> Result { - let arguments = required_tool_call_arguments(response, tool_name)?; - parse_limited_llm_tool_arguments(arguments) -} - pub(crate) fn required_tool_call_arguments<'a>( response: &'a LlmRunResponse, tool_name: &str,