java.lang.Object
com.mulesoft.modules.agent.broker.internal.extension.connection.BaseLLMSession
com.mulesoft.modules.agent.broker.internal.extension.connection.gemini.GeminiSession
All Implemented Interfaces:
LLMClient.LLMSession

public class GeminiSession extends BaseLLMSession
  • Field Details

  • Constructor Details

    • GeminiSession

      public GeminiSession(com.google.genai.Client client, LLMRequest llmRequest, GeminiSettings settings, List<com.google.genai.types.Tool> tools, Set<String> a2aToolSet)
  • Method Details

    • doGetNext

      protected CompletableFuture<org.mule.runtime.api.functional.Either<LLMOutput,ToolSelection>> doGetNext(Map<String,String> additionalHeaders)
      MG says: implementation hint. Gemini doesn't support function calls and structured output at the same time. Define an LLMOutput equivalent function to compensate. Go to master branch and see the (now defunct) FunctionBasedSession class for reference
      Specified by:
      doGetNext in class BaseLLMSession
    • addIteration

      public void addIteration(Iteration iteration)
    • addToolResponse

      public void addToolResponse(ToolResponse toolResponse)