We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3c803 commit 40af9bbCopy full SHA for 40af9bb
core/src/main/java/com/google/adk/flows/llmflows/Contents.java
@@ -131,7 +131,9 @@ private static Event convertForeignEvent(Event event) {
131
String originalAuthor = event.author();
132
133
for (Part part : event.content().get().parts().get()) {
134
- if (part.text().isPresent() && !part.text().get().isEmpty()) {
+ if (part.text().isPresent()
135
+ && !part.text().get().isEmpty()
136
+ && !part.thought().orElse(false)) {
137
parts.add(Part.fromText(String.format("[%s] said: %s", originalAuthor, part.text().get())));
138
} else if (part.functionCall().isPresent()) {
139
FunctionCall functionCall = part.functionCall().get();
0 commit comments