Class CodeMenderAgentConfig

java.lang.Object
com.google.genai.gaos.models.interactions.CodeMenderAgentConfig
All Implemented Interfaces:
CreateAgentInteractionAgentConfig, InteractionAgentConfig

public class CodeMenderAgentConfig extends Object implements InteractionAgentConfig, CreateAgentInteractionAgentConfig
CodeMenderAgentConfig

Configuration for the CodeMender agent.

  • Constructor Details

    • CodeMenderAgentConfig

      public CodeMenderAgentConfig(@Nullable FindRequest findRequest, @Nullable FixRequest fixRequest, @Nullable String model, @Nullable SessionConfig sessionConfig, @Nullable String sessionId)
    • CodeMenderAgentConfig

      public CodeMenderAgentConfig()
  • Method Details

    • findRequest

      public Optional<FindRequest> findRequest()
      Request parameters specific to FIND sessions, used for discovering vulnerabilities in a codebase.
    • fixRequest

      public Optional<FixRequest> fixRequest()
      Request parameters specific to FIX sessions, used for generating and validating security patches.
    • model

      public Optional<String> model()
      The name of the model to use for the CodeMender agent. One CodeMender session will only use one model.
    • sessionConfig

      public Optional<SessionConfig> sessionConfig()
      The configuration of CodeMender sessions.
    • sessionId

      public Optional<String> sessionId()
      Parameter for grouping multiple interactions that belong to the same CodeMender session.
    • type

      public String type()
      Specified by:
      type in interface CreateAgentInteractionAgentConfig
      Specified by:
      type in interface InteractionAgentConfig
    • builder

      public static CodeMenderAgentConfig.Builder builder()
    • withFindRequest

      public CodeMenderAgentConfig withFindRequest(@Nullable FindRequest findRequest)
      Request parameters specific to FIND sessions, used for discovering vulnerabilities in a codebase.
    • withFixRequest

      public CodeMenderAgentConfig withFixRequest(@Nullable FixRequest fixRequest)
      Request parameters specific to FIX sessions, used for generating and validating security patches.
    • withModel

      public CodeMenderAgentConfig withModel(@Nullable String model)
      The name of the model to use for the CodeMender agent. One CodeMender session will only use one model.
    • withSessionConfig

      public CodeMenderAgentConfig withSessionConfig(@Nullable SessionConfig sessionConfig)
      The configuration of CodeMender sessions.
    • withSessionId

      public CodeMenderAgentConfig withSessionId(@Nullable String sessionId)
      Parameter for grouping multiple interactions that belong to the same CodeMender session.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object