mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-30 23:14:32 -07:00
refactor(acp): modularize monolithic acpClient into specialized files (#26143)
This commit is contained in:
@@ -179,3 +179,15 @@ export function appendToLastTextPart(
|
||||
|
||||
return newPrompt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Type guard to determine if a Part is a TextPart.
|
||||
*/
|
||||
export function isTextPart(part: unknown): part is { text: string } {
|
||||
return (
|
||||
typeof part === 'object' &&
|
||||
part !== null &&
|
||||
'text' in part &&
|
||||
typeof (part as { text: unknown }).text === 'string'
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user