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 92642aa commit aa5ef7eCopy full SHA for aa5ef7e
core/src/main/java/com/google/adk/tools/internal/ToolConstraints.java
@@ -123,9 +123,7 @@ private static List<BaseAgent> subAgentsCompat(LlmAgent agent) {
123
Object result = mh.invoke(agent);
124
if (result instanceof List<?>) {
125
List<?> raw = (List<?>) result;
126
- List<BaseAgent> safe =
127
- raw.stream().filter(e -> e instanceof BaseAgent).map(e -> (BaseAgent) e).toList();
128
- return new ArrayList<>(safe);
+ return raw.stream().filter(e -> e instanceof BaseAgent).map(e -> (BaseAgent) e).toList();
129
}
130
} catch (Throwable ignore) {
131
// try next
0 commit comments