McpToolset changes breaks the "SoftwareBugAssistant" sample
Describe the bug McpToolset changes breaks the "SoftwareBugAssistant" sample
To Reproduce Steps to reproduce the behavior:
- Clone ADK from master
- Clone adk-samples from master
- In POM of "adk-samples" refer to the ADK cloned in step 1,
Expected behavior When taken latest pull the functionality broke. It is better if a different version of class was created for McpToolset instead of changing the design pattern of the class.
Screenshots
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Java version:
- ADK version(see maven dependency):
Additional context On attempting to fix it just needs more and objects
It almost looks like creating circular dependency with Aggents and MCP Toolsets needing each other for definition.
Hi Manoj!
Can you check again?
We did the rollback in https://github.com/google/adk-java/commit/2aa474dc7106849029ab618a3e00304c25965235
With these changes, it seems to be working again!
McpToolset result=new McpToolset(params, new ObjectMapper());
Flowable<BaseTool> basetool = result.getTools(null);
List<BaseTool> allTools = basetool.toList().blockingGet();
Suggestion, please see if you can add comment on top of getTools(ReadonlyContext readonlyContext)....that readonlyContext is Optional and can be null.