Class GeneralServiceOption
java.lang.Object
com.alibaba.dashscope.applications.agentstudio.protocol.GeneralServiceOption
- All Implemented Interfaces:
ServiceOption
Service options for the AgentStudio HTTP transport.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGeneralServiceOption.GeneralServiceOptionBuilder<C extends GeneralServiceOption,B extends GeneralServiceOption.GeneralServiceOptionBuilder<C, B>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneralServiceOption.GeneralServiceOptionBuilder<?,?> builder()booleanThe request base urlbooleanIs flatten request and responsegetIsSSE()SDK module name for tracking headers (e.g.getPath()inthashCode()httpUrl()voidsetBaseHttpUrl(String baseHttpUrl) The request base urlvoidsetHttpMethod(HttpMethod httpMethod) voidsetIsAsyncTask(Boolean isAsyncTask) voidsetIsService(Boolean isService) voidvoidSDK module name for tracking headers (e.g.voidvoidsetProtocol(Protocol protocol) voidsetStreamingMode(StreamingMode streamingMode) toString()
-
Constructor Details
-
GeneralServiceOption
-
-
Method Details
-
httpUrl
- Specified by:
httpUrlin interfaceServiceOption
-
getIsFlatten
public boolean getIsFlatten()Description copied from interface:ServiceOptionIs flatten request and response- Specified by:
getIsFlattenin interfaceServiceOption- Returns:
- if the result is flatten
-
getModule
Description copied from interface:ServiceOptionSDK module name for tracking headers (e.g. "agentstudio3").- Specified by:
getModulein interfaceServiceOption- Returns:
- module identifier, or null if unknown
-
builder
-
getStreamingMode
- Specified by:
getStreamingModein interfaceServiceOption
-
getProtocol
- Specified by:
getProtocolin interfaceServiceOption
-
getHttpMethod
- Specified by:
getHttpMethodin interfaceServiceOption
-
getPath
-
getIsAsyncTask
- Specified by:
getIsAsyncTaskin interfaceServiceOption
-
getIsSSE
- Specified by:
getIsSSEin interfaceServiceOption
-
getIsService
-
getBaseHttpUrl
The request base url- Specified by:
getBaseHttpUrlin interfaceServiceOption
-
setStreamingMode
-
setProtocol
-
setHttpMethod
-
setPath
-
setIsAsyncTask
-
setIsSSE
-
setIsService
-
setBaseHttpUrl
The request base url -
setModule
SDK module name for tracking headers (e.g. "agentstudio3"). -
equals
-
hashCode
public int hashCode() -
toString
-