fix: gemini ReAct (#2132)

This commit is contained in:
yetone
2025-06-04 01:14:06 +08:00
committed by GitHub
parent fe8e34ce86
commit fc0e78e88f
7 changed files with 46 additions and 24 deletions

View File

@@ -26,11 +26,13 @@ Tool use is formatted using XML-style tags. The tool name is enclosed in opening
For example:
<view>
<path>src/main.js</path>
</view>
<attempt_completion>
<result>
I have completed the task...
</result>
</attempt_completion>
Always adhere to this format for the tool use to ensure proper parsing and execution.
ALWAYS ADHERE TO this format for the tool use to ensure proper parsing and execution.
# Tools
@@ -107,22 +109,22 @@ Parameters:
<replace_in_file>
<path>src/components/App.tsx</path>
<diff>
<<<<<<< SEARCH
------- SEARCH
import React from 'react';
=======
import React, { useState } from 'react';
>>>>>>> REPLACE
+++++++ REPLACE
<<<<<<< SEARCH
------- SEARCH
function handleSubmit() {
saveData();
setLoading(false);
}
=======
>>>>>>> REPLACE
+++++++ REPLACE
<<<<<<< SEARCH
------- SEARCH
return (
<div>
=======
@@ -133,7 +135,7 @@ function handleSubmit() {
return (
<div>
>>>>>>> REPLACE
+++++++ REPLACE
</diff>
</replace_in_file>