Class ApplicationOutput.Thought.ThoughtBuilder<C extends ApplicationOutput.Thought,B extends ApplicationOutput.Thought.ThoughtBuilder<C,B>>

java.lang.Object
com.alibaba.dashscope.legacy_2x.app.ApplicationOutput.Thought.ThoughtBuilder<C,B>
Enclosing class:
ApplicationOutput.Thought

public abstract static class ApplicationOutput.Thought.ThoughtBuilder<C extends ApplicationOutput.Thought,B extends ApplicationOutput.Thought.ThoughtBuilder<C,B>> extends Object
  • Constructor Details

    • ThoughtBuilder

      public ThoughtBuilder()
  • Method Details

    • thought

      public B thought(String thought)
      Model's inference thought for rag or plugin process
      Returns:
      this.
    • actionType

      public B actionType(String actionType)
      action type response : final response api: to run api calls
      Returns:
      this.
    • response

      public B response(String response)
      model's results
      Returns:
      this.
    • actionName

      public B actionName(String actionName)
      action name, e.g. searchDocument, api
      Returns:
      this.
    • action

      public B action(String action)
      code of action, means which plugin or action to be run
      Returns:
      this.
    • actionInputStream

      public B actionInputStream(String actionInputStream)
      input param with stream
      Returns:
      this.
    • actionInput

      public B actionInput(com.google.gson.JsonObject actionInput)
      api or plugin input parameters
      Returns:
      this.
    • observation

      public B observation(String observation)
      result of api call or doc retrieval
      Returns:
      this.
    • self

      protected abstract B self()
    • build

      public abstract C build()
    • toString

      public String toString()
      Overrides:
      toString in class Object