Class ResourceAcquirerProxy

java.lang.Object
ai.wanaku.routers.proxies.resources.ResourceAcquirerProxy
All Implemented Interfaces:
Proxy, ResourceProxy

public class ResourceAcquirerProxy extends Object implements ResourceProxy
A proxy class for acquiring resources
  • Constructor Details

    • ResourceAcquirerProxy

      public ResourceAcquirerProxy(ServiceRegistry serviceRegistry)
  • Method Details

    • eval

      public List<io.quarkiverse.mcp.server.ResourceContents> eval(io.quarkiverse.mcp.server.ResourceManager.ResourceArguments arguments, ResourceReference mcpResource)
      Description copied from interface: ResourceProxy
      Eval an MCP URI handling it as appropriate by the component (i.e.: read a file, GET a static web page, etc.)
      Specified by:
      eval in interface ResourceProxy
      Parameters:
      arguments - the resource request arguments
      mcpResource - the resource to eval
      Returns:
      Returns the data read by the proxy.
    • name

      public String name()
      Description copied from interface: Proxy
      The name of the proxy
      Specified by:
      name in interface Proxy
      Returns:
      the name of the proxy
    • getServiceConfigurations

      public Map<String,String> getServiceConfigurations(String target)
      Description copied from interface: Proxy
      Retrieve configurations from the service
      Specified by:
      getServiceConfigurations in interface Proxy
      Parameters:
      target - the target service to retrieve configurations from
      Returns:
      A map of configurations and their descriptions