Class AgentConnectorConstants

java.lang.Object
org.cibseven.connect.ai.agent.AgentConnectorConstants

public final class AgentConnectorConstants extends Object
Internal constants shared across the agent connector implementation.
  • Field Details

    • DEFAULT_MODEL

      public static final String DEFAULT_MODEL
      Hard-coded fallback model used when no model input parameter is set on the BPMN activity and the platform operator has not configured an override via DEFAULT_MODEL_PROPERTY or DEFAULT_MODEL_ENV_VAR.

      Operators set their organisation-wide default through one of:

      Resolution order is implemented by resolveDefaultModel().

      See Also:
    • DEFAULT_MODEL_PROPERTY

      public static final String DEFAULT_MODEL_PROPERTY
      JVM system property that overrides DEFAULT_MODEL for the deployment. Wins over DEFAULT_MODEL_ENV_VAR when both are set.
      See Also:
    • DEFAULT_MODEL_ENV_VAR

      public static final String DEFAULT_MODEL_ENV_VAR
      Environment-variable fallback for DEFAULT_MODEL_PROPERTY.
      See Also:
    • DEFAULT_BASE_URL

      public static final String DEFAULT_BASE_URL
      Default base URL for the OpenAI-compatible API endpoint.
      See Also:
    • ENV_BASE_URL

      public static final String ENV_BASE_URL
      Environment variable that overrides the base URL at the process level. Set to e.g. https://openrouter.ai/api/v1 to route requests through OpenRouter.
      See Also:
    • DEFAULT_PG_PORT

      public static final String DEFAULT_PG_PORT
      Default PostgreSQL port when pgPort input parameter is not provided.
      See Also:
    • DEFAULT_PG_TABLE

      public static final String DEFAULT_PG_TABLE
      Default table name for the embedding store when pgTable is not provided.
      See Also:
    • DEFAULT_MAX_RAG_RESULTS

      public static final int DEFAULT_MAX_RAG_RESULTS
      Default maximum number of RAG results returned per query.
      See Also:
    • DEFAULT_MIN_RAG_SCORE

      public static final double DEFAULT_MIN_RAG_SCORE
      Default minimum similarity score (0.0–1.0) for a result to be included. Set to 0.0 (no filtering) so results are always returned; tune per deployment. AllMiniLmL6V2 typically yields cosine similarities in the 0.3–0.7 range for related content.
      See Also:
    • DEFAULT_EMBEDDING_DIMENSION

      public static final int DEFAULT_EMBEDDING_DIMENSION
      Default embedding vector dimension. AllMiniLmL6V2EmbeddingModel produces 384-dimensional vectors.
      See Also:
    • DEFAULT_CHUNK_SIZE

      public static final int DEFAULT_CHUNK_SIZE
      Default maximum characters per text chunk before splitting.
      See Also:
    • DEFAULT_CHUNK_OVERLAP

      public static final int DEFAULT_CHUNK_OVERLAP
      Default character overlap between consecutive chunks.
      See Also:
    • AGENT_CONNECTOR_FLAG_VARIABLE_NAME

      public static final String AGENT_CONNECTOR_FLAG_VARIABLE_NAME
      Flag that indicates the execution of the agent connector in the process; only possible value is true.
      See Also:
    • AGENT_CONNECTOR_LOG_PREFIX

      public static final String AGENT_CONNECTOR_LOG_PREFIX
      Prefix for the per-activity chat log process variable. The full variable name is AGENT_CONNECTOR_LOG_PREFIX + <activityId>, so each service task running the connector writes its own chat log without further configuration from the BPMN designer.
      See Also:
    • DEFAULT_CHAT_MEMORY_MAX_MESSAGES

      public static final int DEFAULT_CHAT_MEMORY_MAX_MESSAGES
      Default sliding window size (number of messages) for the per-memory-id chat memory used when useChatMemory is activated and no explicit chatMemoryMaxMessages is provided.
      See Also:
    • INSTRUCTION_MODE_REPLACE

      public static final String INSTRUCTION_MODE_REPLACE
      instructionMode value — the modeler's instruction replaces the bundled default prompt entirely. Default mode for backwards compatibility.
      See Also:
    • INSTRUCTION_MODE_APPEND

      public static final String INSTRUCTION_MODE_APPEND
      instructionMode value — the modeler's instruction is appended to the bundled default prompt, separated by INSTRUCTION_MODE_SEPARATOR.
      See Also:
    • INSTRUCTION_MODE_PREPEND

      public static final String INSTRUCTION_MODE_PREPEND
      instructionMode value — the modeler's instruction is prepended to the bundled default prompt, separated by INSTRUCTION_MODE_SEPARATOR.
      See Also:
    • DEFAULT_INSTRUCTION_MODE

      public static final String DEFAULT_INSTRUCTION_MODE
      Default for instructionMode when the parameter is unset.
      See Also:
    • INSTRUCTION_MODE_SEPARATOR

      public static final String INSTRUCTION_MODE_SEPARATOR
      Separator used between the bundled default prompt and the caller instruction.
      See Also:
  • Method Details