I'm having some problems trying to use MCP tools t...
# koog-agentic-framework
r
I'm having some problems trying to use MCP tools that have
anyOf
with multiple values. My concrete example is a filter that can have multiple type of objects. Running through the code, I'm getting stuck here. Anyone any thought?
Copy code
{
  "type": "array",
  "description": "A list of filters",
  "items": {
    "type": "object",
    "properties": {
      "dimension": {
        "description": "The dimension to filter on",
        "type": "string"
      },
      "operator": {
        "description": "The operator to use for the filter. Supported operators: '==', 'IN'",
        "type": "string"
      },
      "value": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "number"
          },
          {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "array"
          },
          {
            "type": "string"
          }
        ],
        "description": "The value(s) to filter by"
      }
    },
    "required": [
      "dimension",
      "operator",
      "value"
    ]
  }
}
I've created a PR to fix this - if someone could take a look, that would be great
Builds are passing (finally)
a
Hi, thanks, I’ll try to take a look
r
Thanks!
@Andrey Bragin - any chance you are able to take a look? I'd appreciate it!