Class AnthropicChatModelAgentModelProcessor
java.lang.Object
com.flowable.agent.engine.impl.model.BaseModelProcessor
com.flowable.agent.engine.impl.model.BaseAgentModelProcessor
com.flowable.agent.engine.impl.model.BaseChatClientInvokerAgentModelProcessor<AnthropicAgentModelSettings>
com.flowable.agent.engine.impl.model.anthropic.AnthropicChatModelAgentModelProcessor
- All Implemented Interfaces:
AgentModelProcessor
public class AnthropicChatModelAgentModelProcessor
extends BaseChatClientInvokerAgentModelProcessor<AnthropicAgentModelSettings>
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested classes/interfaces inherited from class com.flowable.agent.engine.impl.model.BaseModelProcessor
BaseModelProcessor.ApiKeyHeader -
Field Summary
Fields inherited from class com.flowable.agent.engine.impl.model.BaseChatClientInvokerAgentModelProcessor
modelSettingsClass, objectMapper, SUPPORTED_MODEL_TYPESFields 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
ConstructorsConstructorDescriptionAnthropicChatModelAgentModelProcessor(AgentEngineConfiguration engineConfiguration, tools.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.ai.chat.client.ChatClientcreateChatClient(AgentDefinitionModel model, AnthropicAgentModelSettings modelSettings) protected org.springframework.ai.chat.model.ChatModelcreateChatModel(AgentDefinitionModel model, AnthropicAgentModelSettings modelSettings) protected BaseModelProcessor.ApiKeyHeadergetApiKeyHeader(String apiKeyType, String modelKey) Methods inherited from class com.flowable.agent.engine.impl.model.BaseChatClientInvokerAgentModelProcessor
canProcess, canProcess, createChatModelFromSettings, determineFlowableAuthenticationApiKey, getFallbackAuthenticationApiKey, prepareModelSettings, processModelMethods inherited from class com.flowable.agent.engine.impl.model.BaseAgentModelProcessor
canProcess, hasGuardrails, hasParameterConstraints, processModel, wrapWithGuardrailsMethods inherited from class com.flowable.agent.engine.impl.model.BaseModelProcessor
determineFlowableApplicationApiKey, determineFlowableApplicationApiKey, getConfigurationService, getPlatformEngineConfiguration, getPlatformManagementService, resolveCredentialsAsApiKey, resolveExpressionApiKey, resolveOauth2ClientApiKey, resolveSecretApiKey
-
Constructor Details
-
AnthropicChatModelAgentModelProcessor
public AnthropicChatModelAgentModelProcessor(AgentEngineConfiguration engineConfiguration, tools.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getApiKeyHeader
- Specified by:
getApiKeyHeaderin classBaseModelProcessor
-
createChatClient
protected org.springframework.ai.chat.client.ChatClient createChatClient(AgentDefinitionModel model, AnthropicAgentModelSettings modelSettings) - Overrides:
createChatClientin classBaseChatClientInvokerAgentModelProcessor<AnthropicAgentModelSettings>
-
createChatModel
protected org.springframework.ai.chat.model.ChatModel createChatModel(AgentDefinitionModel model, AnthropicAgentModelSettings modelSettings) - Overrides:
createChatModelin classBaseChatClientInvokerAgentModelProcessor<AnthropicAgentModelSettings>
-