Class BaseChatClientInvokerAgentModelProcessor<T extends BaseAgentModelSettings>
java.lang.Object
com.flowable.agent.engine.impl.model.BaseModelProcessor
com.flowable.agent.engine.impl.model.BaseAgentModelProcessor
com.flowable.agent.engine.impl.model.BaseChatClientInvokerAgentModelProcessor<T>
- All Implemented Interfaces:
AgentModelProcessor
- Direct Known Subclasses:
AnthropicChatModelAgentModelProcessor,AzureOpenAiChatModelAgentModelProcessor,OpenAiChatModelAgentModelProcessor
public abstract class BaseChatClientInvokerAgentModelProcessor<T extends BaseAgentModelSettings>
extends BaseAgentModelProcessor
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested classes/interfaces inherited from class com.flowable.agent.engine.impl.model.BaseModelProcessor
BaseModelProcessor.ApiKeyHeader -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.ObjectMapperFields inherited from class com.flowable.agent.engine.impl.model.BaseAgentModelProcessor
supportedModelTypesFields inherited from class com.flowable.agent.engine.impl.model.BaseModelProcessor
engineConfiguration, modelType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseChatClientInvokerAgentModelProcessor(AgentEngineConfiguration engineConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Class<T> modelSettingsClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected org.springframework.ai.chat.client.ChatClientcreateChatClient(AgentDefinitionModel model, T modelSettings) protected org.springframework.ai.chat.model.ChatModelcreateChatModel(AgentDefinitionModel model, T modelSettings) protected FlowableAuthenticationApiKeydetermineFlowableAuthenticationApiKey(AgentDefinitionModel model, AgentDefinitionModel.AgentModelSettings modelSettings) protected FlowableAuthenticationApiKeygetFallbackAuthenticationApiKey(String aiVendor, String modelKey) protected voidMethods inherited from class com.flowable.agent.engine.impl.model.BaseAgentModelProcessor
canProcess, processModelMethods inherited from class com.flowable.agent.engine.impl.model.BaseModelProcessor
determineFlowableApplicationApiKey, getApiKeyHeader, getConfigurationService, getPlatformEngineConfiguration, getPlatformManagementService, resolveExpressionApiKey, resolveOauth2ClientApiKey, resolveSecretApiKey
-
Field Details
-
SUPPORTED_MODEL_TYPES
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper -
modelSettingsClass
-
-
Constructor Details
-
BaseChatClientInvokerAgentModelProcessor
protected BaseChatClientInvokerAgentModelProcessor(AgentEngineConfiguration engineConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Class<T> modelSettingsClass)
-
-
Method Details
-
canProcess
- Specified by:
canProcessin classBaseAgentModelProcessor
-
processModel
- Specified by:
processModelin classBaseAgentModelProcessor
-
createChatClient
protected org.springframework.ai.chat.client.ChatClient createChatClient(AgentDefinitionModel model, T modelSettings) -
createChatModel
protected org.springframework.ai.chat.model.ChatModel createChatModel(AgentDefinitionModel model, T modelSettings) -
determineFlowableAuthenticationApiKey
protected FlowableAuthenticationApiKey determineFlowableAuthenticationApiKey(AgentDefinitionModel model, AgentDefinitionModel.AgentModelSettings modelSettings) -
getFallbackAuthenticationApiKey
protected FlowableAuthenticationApiKey getFallbackAuthenticationApiKey(String aiVendor, String modelKey) - Specified by:
getFallbackAuthenticationApiKeyin classBaseModelProcessor
-