@@ -46,7 +46,9 @@ public class CommonValue {
4646 public static final String ML_AGENT_INDEX = ".plugins-ml-agent" ;
4747 public static final String ML_MEMORY_META_INDEX = ".plugins-ml-memory-meta" ;
4848 public static final String ML_MEMORY_MESSAGE_INDEX = ".plugins-ml-memory-message" ;
49- public static final String ML_MEMORY_CONTAINER_INDEX = ".plugins-ml-memory-container" ;
49+ public static final String ML_MEMORY_CONTAINER_INDEX = ".plugins-ml-am-memory-container" ;
50+ public static final String ML_AGENTIC_MEMORY_SYSTEM_INDEX_PREFIX = ".plugins-ml-am" ;
51+ public static final String ML_AGENTIC_MEMORY_INDEX_PATTERN = ML_AGENTIC_MEMORY_SYSTEM_INDEX_PREFIX + "*" ;
5052 public static final String ML_STOP_WORDS_INDEX = ".plugins-ml-stop-words" ;
5153 // index used in 2.19 to track MlTaskBatchUpdate task
5254 public static final String TASK_POLLING_JOB_INDEX = ".ml_commons_task_polling_job" ;
@@ -68,12 +70,19 @@ public class CommonValue {
6870 public static final String ML_MEMORY_META_INDEX_MAPPING_PATH = "index-mappings/ml_memory_meta.json" ;
6971 public static final String ML_MEMORY_MESSAGE_INDEX_MAPPING_PATH = "index-mappings/ml_memory_message.json" ;
7072 public static final String ML_MEMORY_CONTAINER_INDEX_MAPPING_PATH = "index-mappings/ml_memory_container.json" ;
73+ public static final String ML_MEMORY_SESSION_INDEX_MAPPING_PATH = "index-mappings/ml_memory_sessions.json" ;
74+ public static final String ML_WORKING_MEMORY_INDEX_MAPPING_PATH = "index-mappings/ml_memory_working.json" ;
75+ public static final String ML_LONG_TERM_MEMORY_INDEX_MAPPING_PATH = "index-mappings/ml_memory_long_term.json" ;
76+ public static final String ML_LONG_MEMORY_HISTORY_INDEX_MAPPING_PATH = "index-mappings/ml_memory_long_term_history.json" ;
7177 public static final String ML_MCP_SESSION_MANAGEMENT_INDEX_MAPPING_PATH = "index-mappings/ml_mcp_session_management.json" ;
7278 public static final String ML_MCP_TOOLS_INDEX_MAPPING_PATH = "index-mappings/ml_mcp_tools.json" ;
7379 public static final String ML_JOBS_INDEX_MAPPING_PATH = "index-mappings/ml_jobs.json" ;
7480 public static final String ML_INDEX_INSIGHT_CONFIG_INDEX_MAPPING_PATH = "index-mappings/ml_index_insight_config.json" ;
7581 public static final String ML_INDEX_INSIGHT_STORAGE_INDEX_MAPPING_PATH = "index-mappings/ml_index_insight_storage.json" ;
7682
83+ // Resource type used in resource-access-control
84+ public static final String ML_MODEL_GROUP_RESOURCE_TYPE = "ml-model-group" ;
85+
7786 // Calculate Versions independently of OpenSearch core version
7887 public static final Version VERSION_2_11_0 = Version .fromString ("2.11.0" );
7988 public static final Version VERSION_2_12_0 = Version .fromString ("2.12.0" );
@@ -86,6 +95,8 @@ public class CommonValue {
8695 public static final Version VERSION_2_19_0 = Version .fromString ("2.19.0" );
8796 public static final Version VERSION_3_0_0 = Version .fromString ("3.0.0" );
8897 public static final Version VERSION_3_1_0 = Version .fromString ("3.1.0" );
98+ public static final Version VERSION_3_2_0 = Version .fromString ("3.2.0" );
99+ public static final Version VERSION_3_3_0 = Version .fromString ("3.3.0" );
89100
90101 // Connector Constants
91102 public static final String NAME_FIELD = "name" ;
@@ -112,7 +123,9 @@ public class CommonValue {
112123 public static final String MCP_CONNECTORS_FIELD = "mcp_connectors" ;
113124 public static final String MCP_CONNECTOR_ID_FIELD = "mcp_connector_id" ;
114125 public static final String MCP_DEFAULT_SSE_ENDPOINT = "/sse" ;
115- public static final String SSE_ENDPOINT_FILED = "sse_endpoint" ;
126+ public static final String SSE_ENDPOINT_FIELD = "sse_endpoint" ;
127+ public static final String MCP_DEFAULT_STREAMABLE_HTTP_ENDPOINT = "/mcp/" ;
128+ public static final String ENDPOINT_FIELD = "endpoint" ;
116129
117130 // TOOL Constants
118131 public static final String TOOL_INPUT_SCHEMA_FIELD = "input_schema" ;
@@ -121,4 +134,16 @@ public class CommonValue {
121134 public static final long INDEX_INSIGHT_GENERATING_TIMEOUT = 3 * 60 * 1000 ;
122135 public static final long INDEX_INSIGHT_UPDATE_INTERVAL = 24 * 60 * 60 * 1000 ;
123136
137+ // JSON-RPC Error Codes
138+ public static final int JSON_RPC_PARSE_ERROR = -32700 ;
139+ public static final int JSON_RPC_INTERNAL_ERROR = -32603 ;
140+ public static final int JSON_RPC_SERVER_NOT_READY_ERROR = -32000 ;
141+
142+ // MCP Server response fields
143+ public static final String ACKNOWLEDGE_FIELD = "acknowledged" ;
144+ public static final String MCP_RESPONSE_FIELD = "mcp_response" ;
145+ public static final String ERROR_FIELD = "error" ;
146+ public static final String MESSAGE_FIELD = "message" ;
147+ public static final String ID_FIELD = "id" ;
148+ public static final String ERROR_CODE_FIELD = "error_code" ;
124149}
0 commit comments