Package com.tnsai.integration.scop
Class LLMDispatcher
java.lang.Object
com.tnsai.integration.scop.LLMDispatcher
Dispatches LLM requests to provider-specific endpoints via HTTP.
Handles request building, response parsing, and tool format conversion
for all supported providers (OpenAI-compatible, Anthropic, Gemini, Azure).
This is the fallback transport used when Core's LLMClientProvider
SPI is not available on the classpath. When the SPI is available, SCOPBridge
delegates to real Core provider implementations instead.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsendToLLM(LLMConfiguration config, org.json.JSONArray conversation, org.json.JSONArray tools) Sends a message to the LLM and returns the response.
-
Constructor Details
-
LLMDispatcher
public LLMDispatcher(okhttp3.OkHttpClient httpClient)
-
-
Method Details
-
sendToLLM
public LLMResponse sendToLLM(LLMConfiguration config, org.json.JSONArray conversation, org.json.JSONArray tools) Sends a message to the LLM and returns the response. Routes to provider-specific formatting internally.
-