Skip to content

Commit 2ab4d32

Browse files
Merge pull request #1625 from zh-hanlabs:docs/component-registry-orphan-javadoc
PiperOrigin-RevId: 999935574
2 parents 60250a9 + 09a1496 commit 2ab4d32

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎core/src/main/java/com/google/adk/utils/ComponentRegistry.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,6 @@ public static Class<? extends BaseAgent> resolveAgentClass(String agentClassName
295295
+ "' is not in registry or not a subclass of BaseAgent."));
296296
}
297297

298-
/**
299-
* Resolves the tool instance based on the tool name from the configuration.
300-
*
301-
* @param name the name of the tool from the config
302-
* @return an Optional containing the tool instance if found, empty otherwise
303-
*/
304298
/**
305299
* Resolves a toolset instance by name from the registry.
306300
*
@@ -311,6 +305,12 @@ public static Optional<BaseToolset> resolveToolsetInstance(String name) {
311305
return resolveInstance(name, "tools", BaseToolset.class);
312306
}
313307

308+
/**
309+
* Resolves the tool instance based on the tool name from the configuration.
310+
*
311+
* @param name the name of the tool from the config
312+
* @return an Optional containing the tool instance if found, empty otherwise
313+
*/
314314
public static Optional<BaseTool> resolveToolInstance(String name) {
315315
return resolveInstance(name, "tools", BaseTool.class);
316316
}

0 commit comments

Comments
 (0)