Interface HalfDuplexClient
- All Known Implementing Classes:
OkHttpHttpClient
public interface HalfDuplexClient
Half-duplex HTTP client used by the AgentStudio transport.
-
Method Summary
Modifier and TypeMethodDescriptionsend(HalfDuplexRequest req) Blocking send http request and get the response body.voidsend(HalfDuplexRequest req, ResultCallback<DashScopeResult> callback)
-
Method Details
-
send
Blocking send http request and get the response body.- Parameters:
req- the user input data and parameters.- Returns:
- The the `DashScopeResult`.
- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.
-
send
void send(HalfDuplexRequest req, ResultCallback<DashScopeResult> callback) throws NoApiKeyException, ApiException - Throws:
NoApiKeyExceptionApiException
-