类 DefaultAiMessageParser
java.lang.Object
com.agentsflex.core.parser.impl.DefaultAiMessageParser
- 所有已实现的接口:
AiMessageParser<com.alibaba.fastjson2.JSONObject>
public class DefaultAiMessageParser
extends Object
implements AiMessageParser<com.alibaba.fastjson2.JSONObject>
-
字段概要
字段修饰符和类型字段说明private JSONArrayParser<List<ToolCall>>private com.alibaba.fastjson2.JSONPathprivate com.alibaba.fastjson2.JSONPathprivate com.alibaba.fastjson2.JSONPathprivate com.alibaba.fastjson2.JSONPath[]private com.alibaba.fastjson2.JSONPathprivate com.alibaba.fastjson2.JSONPathprivate com.alibaba.fastjson2.JSONPathprivate com.alibaba.fastjson2.JSONPathprivate com.alibaba.fastjson2.JSONPath[]private com.alibaba.fastjson2.JSONPathprivate com.alibaba.fastjson2.JSONPathprivate com.alibaba.fastjson2.JSONPath -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明com.alibaba.fastjson2.JSONPathcom.alibaba.fastjson2.JSONPathcom.alibaba.fastjson2.JSONPathcom.alibaba.fastjson2.JSONPath[]com.alibaba.fastjson2.JSONPathcom.alibaba.fastjson2.JSONPathcom.alibaba.fastjson2.JSONPathstatic DefaultAiMessageParsercom.alibaba.fastjson2.JSONPathcom.alibaba.fastjson2.JSONPath[]com.alibaba.fastjson2.JSONPathcom.alibaba.fastjson2.JSONPathcom.alibaba.fastjson2.JSONPathparse(com.alibaba.fastjson2.JSONObject rootJson, ChatContext context) voidsetCallsParser(JSONArrayParser<List<ToolCall>> callsParser) voidsetCompletionTokensPath(com.alibaba.fastjson2.JSONPath completionTokensPath) voidsetContentPath(com.alibaba.fastjson2.JSONPath contentPath) voidsetDeltaContentPath(com.alibaba.fastjson2.JSONPath deltaContentPath) voidsetDeltaReasoningContentPaths(com.alibaba.fastjson2.JSONPath[] deltaReasoningContentPaths) voidsetDeltaToolCallsJsonPath(com.alibaba.fastjson2.JSONPath deltaToolCallsJsonPath) voidsetFinishReasonPath(com.alibaba.fastjson2.JSONPath finishReasonPath) voidsetIndexPath(com.alibaba.fastjson2.JSONPath indexPath) voidsetPromptTokensPath(com.alibaba.fastjson2.JSONPath promptTokensPath) voidsetReasoningContentPaths(com.alibaba.fastjson2.JSONPath[] reasoningContentPaths) voidsetStopReasonPath(com.alibaba.fastjson2.JSONPath stopReasonPath) voidsetToolCallsJsonPath(com.alibaba.fastjson2.JSONPath toolCallsJsonPath) voidsetTotalTokensPath(com.alibaba.fastjson2.JSONPath totalTokensPath)
-
字段详细资料
-
contentPath
-
deltaContentPath
-
reasoningContentPaths
-
deltaReasoningContentPaths
-
indexPath
-
totalTokensPath
-
promptTokensPath
-
completionTokensPath
-
finishReasonPath
-
stopReasonPath
-
toolCallsJsonPath
-
deltaToolCallsJsonPath
-
callsParser
-
-
构造器详细资料
-
DefaultAiMessageParser
public DefaultAiMessageParser()
-
-
方法详细资料
-
getContentPath
-
setContentPath
-
getDeltaContentPath
-
setDeltaContentPath
-
getReasoningContentPaths
-
setReasoningContentPaths
-
getDeltaReasoningContentPaths
-
setDeltaReasoningContentPaths
public void setDeltaReasoningContentPaths(com.alibaba.fastjson2.JSONPath[] deltaReasoningContentPaths) -
getIndexPath
-
setIndexPath
-
getTotalTokensPath
-
setTotalTokensPath
-
getPromptTokensPath
-
setPromptTokensPath
-
getCompletionTokensPath
-
setCompletionTokensPath
-
getFinishReasonPath
-
setFinishReasonPath
-
getStopReasonPath
-
setStopReasonPath
-
getToolCallsJsonPath
-
setToolCallsJsonPath
-
getDeltaToolCallsJsonPath
-
setDeltaToolCallsJsonPath
-
getCallsParser
-
setCallsParser
-
parse
- 指定者:
parse在接口中AiMessageParser<com.alibaba.fastjson2.JSONObject>
-
getOpenAIMessageParser
-