Class LLMSpec

java.lang.Object
org.opensearch.ml.common.agent.LLMSpec
All Implemented Interfaces:
org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject

public class LLMSpec extends Object implements org.opensearch.core.xcontent.ToXContentObject
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent

    org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from interface org.opensearch.core.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    LLMSpec(String modelId, Map<String,String> parameters)
     
    LLMSpec(org.opensearch.core.common.io.stream.StreamInput input)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected boolean
     
    boolean
     
    static LLMSpec
    fromStream(org.opensearch.core.common.io.stream.StreamInput in)
     
     
     
    int
     
    static LLMSpec
    parse(org.opensearch.core.xcontent.XContentParser parser)
     
     
    org.opensearch.core.xcontent.XContentBuilder
    toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params)
     
    void
    writeTo(org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opensearch.core.xcontent.ToXContentObject

    isFragment
  • Field Details

  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Throws:
      IOException
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException
    • parse

      public static LLMSpec parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • fromStream

      public static LLMSpec fromStream(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
    • builder

      public static LLMSpec.LLMSpecBuilder builder()
    • toBuilder

      public LLMSpec.LLMSpecBuilder toBuilder()
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String getModelId()
    • getParameters

      public Map<String,String> getParameters()