类 LlmNode
java.lang.Object
dev.tinyflow.core.chain.Node
dev.tinyflow.core.node.BaseNode
dev.tinyflow.core.node.LlmNode
- 所有已实现的接口:
Serializable
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明protected Llm.ChatOptionsprotected Stringprotected Stringprotected Stringprotected Stringprotected String从类继承的字段 dev.tinyflow.core.node.BaseNode
outputDefs, parameters从类继承的字段 dev.tinyflow.core.chain.Node
computeCostExpr, condition, description, id, loopBreakCondition, loopEnable, loopIntervalMs, maxLoopCount, maxRetryCount, name, parentId, resetRetryCountAfterNormal, retryEnable, retryIntervalMs, validator -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getLlmId()voidsetChatOptions(Llm.ChatOptions chatOptions) voidvoidsetJsonSchema(String jsonSchema) voidvoidsetOutType(String outType) voidsetSystemPrompt(String systemPrompt) voidsetUserPrompt(String userPrompt) toString()static StringunWrapMarkdown(String markdown) 移除 ``` 或者 ```json 等从类继承的方法 dev.tinyflow.core.node.BaseNode
addInputParameter, addOutputDef, addOutputDefs, getFormatParameters, getOutputDefs, getParameters, setOutputDefs, setParameters从类继承的方法 dev.tinyflow.core.chain.Node
calculateComputeCost, doCalculateComputeCost, getComputeCostExpr, getCondition, getDescription, getId, getLoopBreakCondition, getLoopIntervalMs, getMaxLoopCount, getMaxRetryCount, getName, getParentId, getRetryIntervalMs, getValidator, isLoopEnable, isResetRetryCountAfterNormal, isRetryEnable, setComputeCostExpr, setCondition, setDescription, setId, setLoopBreakCondition, setLoopEnable, setLoopIntervalMs, setMaxLoopCount, setMaxRetryCount, setName, setParentId, setResetRetryCountAfterNormal, setRetryEnable, setRetryIntervalMs, setValidator, validate
-
字段详细资料
-
llmId
-
chatOptions
-
userPrompt
-
systemPrompt
-
jsonSchema
-
outType
-
images
-
-
构造器详细资料
-
LlmNode
public LlmNode()
-
-
方法详细资料
-
getLlmId
-
setLlmId
-
getUserPrompt
-
setUserPrompt
-
getSystemPrompt
-
setSystemPrompt
-
getJsonSchema
-
setJsonSchema
-
getChatOptions
-
setChatOptions
-
getOutType
-
setOutType
-
getImages
-
setImages
-
execute
-
unWrapMarkdown
移除 ``` 或者 ```json 等- 参数:
markdown- json内容- 返回:
- 方法 json 内容
-
toString
-