mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
fix: EditTool can clobber human edits to the same file. (#3043)
Co-authored-by: Colt McAnlis <colton@google.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -13,3 +13,11 @@ export function isFunctionResponse(content: Content): boolean {
|
||||
content.parts.every((part) => !!part.functionResponse)
|
||||
);
|
||||
}
|
||||
|
||||
export function isFunctionCall(content: Content): boolean {
|
||||
return (
|
||||
content.role === 'model' &&
|
||||
!!content.parts &&
|
||||
content.parts.every((part) => !!part.functionCall)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user