Class SparkSqlAgent
java.lang.Object
com.hw.langchain.agents.toolkits.spark.sql.base.SparkSqlAgent
- Author:
- HamaWhite
-
Method Summary
Modifier and TypeMethodDescriptionstatic AgentExecutor
createSparkSqlAgent
(BaseLanguageModel llm, SparkSqlToolkit toolkit) Construct a Spark SQL agent from an LLM and tools.static AgentExecutor
createSparkSqlAgent
(BaseLanguageModel llm, SparkSqlToolkit toolkit, String prefix, String suffix, String formatInstructions, List<String> inputVariables, int topK, Integer maxIterations, Float maxExecutionTime, String earlyStoppingMethod) Construct a Spark SQL agent from an LLM and tools.
-
Method Details
-
createSparkSqlAgent
Construct a Spark SQL agent from an LLM and tools. -
createSparkSqlAgent
public static AgentExecutor createSparkSqlAgent(BaseLanguageModel llm, SparkSqlToolkit toolkit, String prefix, String suffix, String formatInstructions, List<String> inputVariables, int topK, Integer maxIterations, Float maxExecutionTime, String earlyStoppingMethod) Construct a Spark SQL agent from an LLM and tools.
-