-
Notifications
You must be signed in to change notification settings - Fork 199
Add test for parsing complex enum parameters in MCP #299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Qodana for JVM93 new problems were found
@@ Code coverage @@
+ 50% total lines covered
5769 lines analyzed, 2924 lines covered
# Calculated according to the filters of your coverage tool ☁️ View the detailed Qodana report Detected 116 dependenciesThird-party software listThis page lists the third-party software dependencies used in koog-agents
Contact Qodana teamContact us at [email protected]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for noticing this!
After investigation, it turned out that arg type should support any type of Json Schema including mixed json https://json-schema.org/understanding-json-schema/reference/enum?utm_source=chatgpt.com#extended-example:-accepting-multiple-data-types where we can include values of different type to enums list
{
"properties": {
"color": {
"enum": ["red", "amber", "green", null, 42]
}
}
}
agents/agents-mcp/src/jvmTest/kotlin/ai/koog/agents/mcp/DefaultMcpToolDescriptorParserTest.kt
Outdated
Show resolved
Hide resolved
29be379
to
315eb01
Compare
A test covering the complex enum parameters structure in MCP.
Should be enabled when #307 is fixed.
Type of the change
Checklist for all pull requests
develop
as the base branchAdditional steps for pull requests adding a new feature