Class ApigeeLlm
java.lang.Object
com.google.adk.models.BaseLlm
com.google.adk.models.ApigeeLlm
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ApigeeLlm.Builderbuilder()Returns a new Builder for constructingApigeeLlminstances.connect(LlmRequest llmRequest) Creates a live connection to the LLM.io.reactivex.rxjava3.core.Flowable<LlmResponse> generateContent(LlmRequest llmRequest, boolean stream) Generates one content from the given LLM request and tools.
-
Method Details
-
builder
Returns a new Builder for constructingApigeeLlminstances.- Returns:
- a new
ApigeeLlm.Builder
-
generateContent
public io.reactivex.rxjava3.core.Flowable<LlmResponse> generateContent(LlmRequest llmRequest, boolean stream) Description copied from class:BaseLlmGenerates one content from the given LLM request and tools.- Specified by:
generateContentin classBaseLlm- Parameters:
llmRequest- The LLM request containing the input prompt and parameters.stream- A boolean flag indicating whether to stream the response.- Returns:
- A Flowable of LlmResponses. For non-streaming calls, it will only yield one LlmResponse. For streaming calls, it may yield more than one LlmResponse, but all yielded LlmResponses should be treated as one content by merging their parts.
-
connect
Description copied from class:BaseLlmCreates a live connection to the LLM.
-