Class BaseModelProcessor
java.lang.Object
com.flowable.agent.engine.impl.model.BaseModelProcessor
- Direct Known Subclasses:
BaseAgentModelProcessor, BaseRemoteEmbedderKnowledgeBaseModelProcessor, OpenAiVectorStoreApiKeyKnowledgeBaseProcessor
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBaseModelProcessor(AgentEngineConfiguration engineConfiguration, String modelType) -
Method Summary
Modifier and TypeMethodDescriptionprotected FlowableAuthenticationApiKeydetermineFlowableApplicationApiKey(AgentDefinitionModel.Credentials apiKey, String modelKey, String aiVendor) protected FlowableAuthenticationApiKeydetermineFlowableApplicationApiKey(BaseAgentModelSettings modelSettings, String modelKey, String aiVendor) Preferred resolution path.protected abstract BaseModelProcessor.ApiKeyHeadergetApiKeyHeader(String apiKeyType, String modelKey) protected ConfigurationServiceprotected abstract FlowableAuthenticationApiKeygetFallbackAuthenticationApiKey(String aiVendor, String modelKey) protected PlatformEngineConfigurationApiprotected PlatformManagementServiceprotected FlowableAuthenticationApiKeyresolveCredentialsAsApiKey(AgentDefinitionModel.Credentials credentials, String modelKey, String aiVendor, String headerName, String headerPrefix) Resolve aAgentDefinitionModel.Credentialsinto aFlowableAuthenticationApiKeywith an explicit header name and value prefix supplied by theAgentAuthenticationsubtype (i.e. the auth object dictates the header — not the per-vendor default).protected FlowableAuthenticationApiKeyresolveExpressionApiKey(String modelKey, String value, String aiVendor) protected FlowableAuthenticationApiKeyresolveOauth2ClientApiKey(String modelKey, String aiVendor, String oauth2RegistrationKey) protected FlowableAuthenticationApiKeyresolveSecretApiKey(String modelKey, String secretName, String vendorName)
-
Field Details
-
engineConfiguration
-
modelType
-
-
Constructor Details
-
BaseModelProcessor
-
-
Method Details
-
determineFlowableApplicationApiKey
protected FlowableAuthenticationApiKey determineFlowableApplicationApiKey(AgentDefinitionModel.Credentials apiKey, String modelKey, String aiVendor) -
determineFlowableApplicationApiKey
protected FlowableAuthenticationApiKey determineFlowableApplicationApiKey(BaseAgentModelSettings modelSettings, String modelKey, String aiVendor) Preferred resolution path. If the model has anAgentAuthentication, build the header from it. If the legacyapiKeyis present, fall back to the legacyapiKey + getApiKeyHeaderchain. If neither is configured, the model intentionally has no authentication (e.g. a locally hosted OpenAI-compatible LLM with no auth) andnullis returned; consumers must treat anullauthentication provider as "do not add an auth header". -
resolveCredentialsAsApiKey
protected FlowableAuthenticationApiKey resolveCredentialsAsApiKey(AgentDefinitionModel.Credentials credentials, String modelKey, String aiVendor, String headerName, String headerPrefix) Resolve aAgentDefinitionModel.Credentialsinto aFlowableAuthenticationApiKeywith an explicit header name and value prefix supplied by theAgentAuthenticationsubtype (i.e. the auth object dictates the header — not the per-vendor default). -
getApiKeyHeader
protected abstract BaseModelProcessor.ApiKeyHeader getApiKeyHeader(String apiKeyType, String modelKey) -
resolveSecretApiKey
protected FlowableAuthenticationApiKey resolveSecretApiKey(String modelKey, String secretName, String vendorName) -
resolveOauth2ClientApiKey
protected FlowableAuthenticationApiKey resolveOauth2ClientApiKey(String modelKey, String aiVendor, String oauth2RegistrationKey) -
resolveExpressionApiKey
protected FlowableAuthenticationApiKey resolveExpressionApiKey(String modelKey, String value, String aiVendor) -
getFallbackAuthenticationApiKey
protected abstract FlowableAuthenticationApiKey getFallbackAuthenticationApiKey(String aiVendor, String modelKey) -
getConfigurationService
-
getPlatformManagementService
-
getPlatformEngineConfiguration
-