Class GraphQlAgentClient

  • All Implemented Interfaces:
    ai.ancf.lmos.arc.agent.client.AgentClient , java.io.Closeable , java.lang.AutoCloseable

    
    public final class GraphQlAgentClient
     implements AgentClient, Closeable
                        

    Implementation of AgentClient that uses GraphQL over WebSockets to communicate with the agents.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Flow<Message> callAgent(AgentRequest agentRequest, String url) Calls the agent with the given request.
      Unit close()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphQlAgentClient

        GraphQlAgentClient(String defaultUrl)
    • Method Detail

      • callAgent

         Flow<Message> callAgent(AgentRequest agentRequest, String url)

        Calls the agent with the given request. If a url is not provided, the client will use the default url.