From 80a095f6cb8af9712a4cc1b195ab9c9f1a16d992 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 2 Dec 2024 10:28:09 +0100 Subject: [PATCH] Move modules owned by appex-ai-infra --- .github/CODEOWNERS | 10 +- api_docs/inference.devdocs.json | 80 +++--- api_docs/kbn_core_http_server.devdocs.json | 12 +- api_docs/kbn_inference_common.devdocs.json | 264 +++++++++--------- api_docs/kbn_product_doc_common.devdocs.json | 62 ++-- api_docs/llm_tasks.devdocs.json | 10 +- api_docs/product_doc_base.devdocs.json | 20 +- docs/developer/plugin-list.asciidoc | 6 +- package.json | 10 +- tsconfig.base.json | 20 +- x-pack/.i18nrc.json | 2 +- .../ai-infra/inference-common/README.md | 0 .../ai-infra/inference-common/index.ts | 0 .../ai-infra/inference-common/jest.config.js | 4 +- .../ai-infra/inference-common/kibana.jsonc | 0 .../ai-infra/inference-common/package.json | 0 .../inference-common/src/chat_complete/api.ts | 0 .../src/chat_complete/bound_api.ts | 0 .../src/chat_complete/errors.ts | 0 .../src/chat_complete/event_utils.ts | 0 .../src/chat_complete/events.ts | 0 .../src/chat_complete/index.ts | 0 .../src/chat_complete/messages.ts | 0 .../src/chat_complete/tool_schema.ts | 0 .../src/chat_complete/tools.ts | 0 .../ai-infra/inference-common/src/errors.ts | 0 .../inference-common/src/inference_task.ts | 0 .../inference-common/src/output/api.ts | 0 .../inference-common/src/output/bound_api.ts | 0 .../src/output/event_utils.ts | 0 .../inference-common/src/output/events.ts | 0 .../inference-common/src/output/index.ts | 0 .../inference-common/src/truncate_list.ts | 0 .../ai-infra/inference-common/tsconfig.json | 2 +- .../ai-infra/product-doc-common/README.md | 0 .../ai-infra/product-doc-common/index.ts | 0 .../product-doc-common/jest.config.js | 4 +- .../ai-infra/product-doc-common/kibana.jsonc | 0 .../ai-infra/product-doc-common/package.json | 0 .../product-doc-common/src/artifact.test.ts | 0 .../product-doc-common/src/artifact.ts | 0 .../src/artifact_content.test.ts | 0 .../src/artifact_content.ts | 0 .../product-doc-common/src/documents.ts | 0 .../product-doc-common/src/indices.ts | 0 .../product-doc-common/src/manifest.ts | 0 .../product-doc-common/src/product.ts | 0 .../ai-infra/product-doc-common/tsconfig.json | 2 +- .../shared}/ai_infra/llm_tasks/README.md | 0 .../shared}/ai_infra/llm_tasks/jest.config.js | 6 +- .../shared}/ai_infra/llm_tasks/kibana.jsonc | 0 .../ai_infra/llm_tasks/server/config.ts | 0 .../ai_infra/llm_tasks/server/index.ts | 0 .../ai_infra/llm_tasks/server/plugin.ts | 0 .../ai_infra/llm_tasks/server/tasks/index.ts | 0 .../tasks/retrieve_documentation/index.ts | 0 .../retrieve_documentation.test.ts | 0 .../retrieve_documentation.ts | 0 .../summarize_document.ts | 0 .../tasks/retrieve_documentation/types.ts | 0 .../ai_infra/llm_tasks/server/types.ts | 0 .../llm_tasks/server/utils/tokens.test.ts | 0 .../ai_infra/llm_tasks/server/utils/tokens.ts | 0 .../shared}/ai_infra/llm_tasks/tsconfig.json | 4 +- .../ai_infra/product_doc_base/README.md | 0 .../product_doc_base/common/consts.ts | 0 .../common/http_api/installation.ts | 0 .../product_doc_base/common/install_status.ts | 0 .../ai_infra/product_doc_base}/jest.config.js | 10 +- .../ai_infra/product_doc_base/kibana.jsonc | 0 .../ai_infra/product_doc_base/public/index.ts | 0 .../product_doc_base/public/plugin.tsx | 0 .../public/services/installation/index.ts | 0 .../installation/installation_service.test.ts | 0 .../installation/installation_service.ts | 0 .../public/services/installation/types.ts | 0 .../ai_infra/product_doc_base/public/types.ts | 0 .../product_doc_base/server/config.ts | 0 .../ai_infra/product_doc_base/server/index.ts | 0 .../product_doc_base/server/plugin.test.ts | 0 .../product_doc_base/server/plugin.ts | 0 .../product_doc_base/server/routes/index.ts | 0 .../server/routes/installation.ts | 0 .../server/saved_objects/index.ts | 0 .../saved_objects/product_doc_install.ts | 0 .../services/doc_install_status/index.ts | 0 .../model_conversion.test.ts | 0 .../doc_install_status/model_conversion.ts | 0 .../product_doc_install_service.test.ts | 0 .../product_doc_install_service.ts | 0 .../doc_install_status/service.mock.ts | 0 .../services/doc_manager/check_license.ts | 0 .../services/doc_manager/doc_manager.test.ts | 0 .../services/doc_manager/doc_manager.ts | 0 .../server/services/doc_manager/index.ts | 0 .../server/services/doc_manager/types.ts | 0 .../endpoint_manager.test.ts | 0 .../inference_endpoint/endpoint_manager.ts | 0 .../services/inference_endpoint/index.ts | 0 .../inference_endpoint/service.mock.ts | 0 .../utils/get_model_install_status.ts | 0 .../inference_endpoint/utils/index.ts | 0 .../inference_endpoint/utils/install_elser.ts | 0 .../utils/wait_until_model_deployed.ts | 0 .../services/package_installer/index.ts | 0 .../package_installer.test.mocks.ts | 0 .../package_installer.test.ts | 0 .../package_installer/package_installer.ts | 0 .../steps/create_index.test.ts | 0 .../package_installer/steps/create_index.ts | 0 .../steps/fetch_artifact_versions.test.ts | 0 .../steps/fetch_artifact_versions.ts | 0 .../services/package_installer/steps/index.ts | 0 .../steps/populate_index.test.ts | 0 .../package_installer/steps/populate_index.ts | 0 .../steps/validate_artifact_archive.test.ts | 0 .../steps/validate_artifact_archive.ts | 0 .../utils/archive_accessors.test.ts | 0 .../utils/archive_accessors.ts | 0 .../package_installer/utils/download.ts | 0 .../services/package_installer/utils/index.ts | 0 .../package_installer/utils/semver.test.ts | 0 .../package_installer/utils/semver.ts | 0 .../utils/test_data/test_archive_1.zip | Bin .../utils/zip_archive.test.ts | 0 .../package_installer/utils/zip_archive.ts | 0 .../server/services/search/index.ts | 0 .../server/services/search/perform_search.ts | 0 .../services/search/search_service.test.ts | 0 .../server/services/search/search_service.ts | 0 .../server/services/search/types.ts | 0 .../get_indices_for_product_names.test.ts | 0 .../utils/get_indices_for_product_names.ts | 0 .../server/services/search/utils/index.ts | 0 .../services/search/utils/map_result.test.ts | 0 .../services/search/utils/map_result.ts | 0 .../server/tasks/ensure_up_to_date.ts | 0 .../product_doc_base/server/tasks/index.ts | 0 .../server/tasks/install_all.ts | 0 .../server/tasks/uninstall_all.ts | 0 .../product_doc_base/server/tasks/utils.ts | 0 .../ai_infra/product_doc_base/server/types.ts | 0 .../ai_infra/product_doc_base/tsconfig.json | 4 +- .../plugins/shared}/inference/README.md | 0 .../chat_complete/bind_chat_complete.test.ts | 0 .../chat_complete/bind_chat_complete.ts | 0 .../inference/common/chat_complete/index.ts | 0 .../shared}/inference/common/connectors.ts | 0 .../shared}/inference/common/http_apis.ts | 0 .../plugins/shared}/inference/common/index.ts | 0 .../common/output/bind_output.test.ts | 0 .../inference/common/output/bind_output.ts | 0 .../common/output/create_output_api.test.ts | 0 .../common/output/create_output_api.ts | 0 .../shared}/inference/common/output/index.ts | 0 .../common/tasks/nl_to_esql/constants.ts | 0 .../correct_common_esql_mistakes.test.ts | 0 .../correct_common_esql_mistakes.ts | 0 .../correct_query_with_actions.test.ts | 0 .../nl_to_esql/correct_query_with_actions.ts | 0 .../get_errors_with_commands.test.ts | 0 .../nl_to_esql/get_errors_with_commands.ts | 0 .../common/utils/ensure_multi_turn.ts | 0 .../utils/generate_fake_tool_call_id.ts | 0 .../plugins/shared/inference}/jest.config.js | 10 +- .../plugins/shared}/inference/kibana.jsonc | 0 .../inference/public/chat_complete.test.ts | 0 .../shared}/inference/public/chat_complete.ts | 0 .../plugins/shared}/inference/public/index.ts | 0 .../shared}/inference/public/plugin.tsx | 0 .../plugins/shared}/inference/public/types.ts | 0 .../create_observable_from_http_response.ts | 0 .../http_response_into_observable.test.ts | 0 .../util/http_response_into_observable.ts | 0 .../scripts/evaluation/.eslintrc.json | 0 .../inference/scripts/evaluation/README.md | 2 +- .../inference/scripts/evaluation/cli.ts | 0 .../scripts/evaluation/evaluation.ts | 0 .../scripts/evaluation/evaluation_client.ts | 0 .../inference/scripts/evaluation/index.js | 0 .../evaluation/scenarios/esql/index.spec.ts | 0 .../scripts/evaluation/services/index.ts | 0 .../scripts/evaluation/table_renderer.ts | 0 .../inference/scripts/evaluation/types.ts | 0 .../scripts/load_esql_docs/README.md | 0 .../load_esql_docs/extract_doc_entries.ts | 0 .../scripts/load_esql_docs/generate_doc.ts | 0 .../inference/scripts/load_esql_docs/index.js | 0 .../scripts/load_esql_docs/load_esql_docs.ts | 0 .../prompts/convert_to_markdown.ts | 0 .../prompts/create_documentation_page.ts | 0 .../scripts/load_esql_docs/prompts/index.ts | 0 .../prompts/rewrite_function_page.ts | 0 .../load_esql_docs/sync_built_docs_repo.ts | 0 .../load_esql_docs/utils/output_executor.ts | 0 .../inference/scripts/util/cli_options.ts | 0 .../scripts/util/get_service_urls.ts | 0 .../inference/scripts/util/kibana_client.ts | 0 .../scripts/util/read_kibana_config.ts | 2 +- .../scripts/util/select_connector.ts | 0 .../bedrock/bedrock_claude_adapter.test.ts | 0 .../bedrock/bedrock_claude_adapter.ts | 0 .../chat_complete/adapters/bedrock/index.ts | 0 .../bedrock/process_completion_chunks.test.ts | 0 .../bedrock/process_completion_chunks.ts | 0 .../chat_complete/adapters/bedrock/prompts.ts | 0 .../serde_eventstream_into_observable.test.ts | 0 .../serde_eventstream_into_observable.ts | 0 .../adapters/bedrock/serde_utils.test.ts | 0 .../adapters/bedrock/serde_utils.ts | 0 .../chat_complete/adapters/bedrock/types.ts | 0 .../gemini/gemini_adapter.test.mocks.ts | 0 .../adapters/gemini/gemini_adapter.test.ts | 0 .../adapters/gemini/gemini_adapter.ts | 0 .../chat_complete/adapters/gemini/index.ts | 0 .../gemini/process_vertex_stream.test.ts | 0 .../adapters/gemini/process_vertex_stream.ts | 0 .../chat_complete/adapters/gemini/types.ts | 0 .../adapters/get_inference_adapter.test.ts | 0 .../adapters/get_inference_adapter.ts | 0 .../server/chat_complete/adapters/index.ts | 0 .../chat_complete/adapters/openai/index.ts | 0 .../adapters/openai/openai_adapter.test.ts | 0 .../adapters/openai/openai_adapter.ts | 0 .../inference/server/chat_complete/api.ts | 0 .../inference/server/chat_complete/errors.ts | 0 .../inference/server/chat_complete/index.ts | 0 .../simulated_function_calling/constants.ts | 0 .../get_system_instructions.ts | 0 .../simulated_function_calling/index.ts | 0 .../parse_inline_function_calls.ts | 0 .../wrap_with_simulated_function_calling.ts | 0 .../inference/server/chat_complete/types.ts | 0 .../utils/chunks_into_message.test.ts | 0 .../utils/chunks_into_message.ts | 0 .../server/chat_complete/utils/index.ts | 0 .../utils/inference_executor.test.ts | 0 .../chat_complete/utils/inference_executor.ts | 0 .../utils/stream_to_response.test.ts | 0 .../chat_complete/utils/stream_to_response.ts | 0 .../shared}/inference/server/config.ts | 0 .../plugins/shared}/inference/server/index.ts | 0 .../server/inference_client/bind_client.ts | 0 .../inference_client/create_client.test.ts | 0 .../server/inference_client/create_client.ts | 0 .../server/inference_client/index.ts | 0 .../inference_client/inference_client.ts | 0 .../server/inference_client/types.ts | 0 .../shared}/inference/server/plugin.ts | 0 .../inference/server/routes/chat_complete.ts | 0 .../inference/server/routes/connectors.ts | 0 .../shared}/inference/server/routes/index.ts | 0 .../tasks/nl_to_esql/actions/generate_esql.ts | 0 .../server/tasks/nl_to_esql/actions/index.ts | 0 .../actions/request_documentation.ts | 0 .../server/tasks/nl_to_esql/actions/shared.ts | 0 .../tasks/nl_to_esql/doc_base/aliases.ts | 0 .../nl_to_esql/doc_base/esql_doc_base.ts | 0 .../server/tasks/nl_to_esql/doc_base/index.ts | 0 .../tasks/nl_to_esql/doc_base/load_data.ts | 0 .../tasks/nl_to_esql/doc_base/suggestions.ts | 0 .../server/tasks/nl_to_esql/doc_base/types.ts | 0 .../tasks/nl_to_esql/esql_docs/esql-abs.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-acos.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-asin.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-atan.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-atan2.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-avg.txt | 0 .../nl_to_esql/esql_docs/esql-bucket.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-case.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-cbrt.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-ceil.txt | 0 .../nl_to_esql/esql_docs/esql-cidr_match.txt | 0 .../nl_to_esql/esql_docs/esql-coalesce.txt | 0 .../nl_to_esql/esql_docs/esql-concat.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-cos.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-cosh.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-count.txt | 0 .../esql_docs/esql-count_distinct.txt | 0 .../nl_to_esql/esql_docs/esql-date_diff.txt | 0 .../esql_docs/esql-date_extract.txt | 0 .../nl_to_esql/esql_docs/esql-date_format.txt | 0 .../nl_to_esql/esql_docs/esql-date_parse.txt | 0 .../nl_to_esql/esql_docs/esql-date_trunc.txt | 0 .../nl_to_esql/esql_docs/esql-dissect.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-drop.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-e.txt | 0 .../nl_to_esql/esql_docs/esql-ends_with.txt | 0 .../nl_to_esql/esql_docs/esql-enrich.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-eval.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-exp.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-floor.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-from.txt | 0 .../nl_to_esql/esql_docs/esql-from_base64.txt | 0 .../nl_to_esql/esql_docs/esql-greatest.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-grok.txt | 0 .../nl_to_esql/esql_docs/esql-ip_prefix.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-keep.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-least.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-left.txt | 0 .../nl_to_esql/esql_docs/esql-length.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-limit.txt | 0 .../nl_to_esql/esql_docs/esql-locate.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-log.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-log10.txt | 0 .../nl_to_esql/esql_docs/esql-lookup.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-ltrim.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-max.txt | 0 .../nl_to_esql/esql_docs/esql-median.txt | 0 .../esql-median_absolute_deviation.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-min.txt | 0 .../nl_to_esql/esql_docs/esql-mv_append.txt | 0 .../nl_to_esql/esql_docs/esql-mv_avg.txt | 0 .../nl_to_esql/esql_docs/esql-mv_concat.txt | 0 .../nl_to_esql/esql_docs/esql-mv_count.txt | 0 .../nl_to_esql/esql_docs/esql-mv_dedupe.txt | 0 .../nl_to_esql/esql_docs/esql-mv_expand.txt | 0 .../nl_to_esql/esql_docs/esql-mv_first.txt | 0 .../nl_to_esql/esql_docs/esql-mv_last.txt | 0 .../nl_to_esql/esql_docs/esql-mv_max.txt | 0 .../nl_to_esql/esql_docs/esql-mv_median.txt | 0 .../nl_to_esql/esql_docs/esql-mv_min.txt | 0 .../esql-mv_pseries_weighted_sum.txt | 0 .../nl_to_esql/esql_docs/esql-mv_slice.txt | 0 .../nl_to_esql/esql_docs/esql-mv_sort.txt | 0 .../nl_to_esql/esql_docs/esql-mv_sum.txt | 0 .../nl_to_esql/esql_docs/esql-mv_zip.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-now.txt | 0 .../nl_to_esql/esql_docs/esql-operators.txt | 0 .../nl_to_esql/esql_docs/esql-overview.txt | 0 .../nl_to_esql/esql_docs/esql-percentile.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-pi.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-pow.txt | 0 .../nl_to_esql/esql_docs/esql-rename.txt | 0 .../nl_to_esql/esql_docs/esql-repeat.txt | 0 .../nl_to_esql/esql_docs/esql-replace.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-right.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-round.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-row.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-rtrim.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-show.txt | 0 .../nl_to_esql/esql_docs/esql-signum.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-sin.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-sinh.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-sort.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-split.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-sqrt.txt | 0 .../esql_docs/esql-st_centroid_agg.txt | 0 .../nl_to_esql/esql_docs/esql-st_contains.txt | 0 .../nl_to_esql/esql_docs/esql-st_disjoint.txt | 0 .../nl_to_esql/esql_docs/esql-st_distance.txt | 0 .../esql_docs/esql-st_intersects.txt | 0 .../nl_to_esql/esql_docs/esql-st_within.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-st_x.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-st_y.txt | 0 .../nl_to_esql/esql_docs/esql-starts_with.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-stats.txt | 0 .../nl_to_esql/esql_docs/esql-substring.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-sum.txt | 0 .../nl_to_esql/esql_docs/esql-syntax.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-tan.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-tanh.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-tau.txt | 0 .../nl_to_esql/esql_docs/esql-to_base64.txt | 0 .../nl_to_esql/esql_docs/esql-to_boolean.txt | 0 .../esql_docs/esql-to_cartesianpoint.txt | 0 .../esql_docs/esql-to_cartesianshape.txt | 0 .../nl_to_esql/esql_docs/esql-to_datetime.txt | 0 .../nl_to_esql/esql_docs/esql-to_degrees.txt | 0 .../nl_to_esql/esql_docs/esql-to_double.txt | 0 .../nl_to_esql/esql_docs/esql-to_geopoint.txt | 0 .../nl_to_esql/esql_docs/esql-to_geoshape.txt | 0 .../nl_to_esql/esql_docs/esql-to_integer.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-to_ip.txt | 0 .../nl_to_esql/esql_docs/esql-to_long.txt | 0 .../nl_to_esql/esql_docs/esql-to_lower.txt | 0 .../nl_to_esql/esql_docs/esql-to_radians.txt | 0 .../nl_to_esql/esql_docs/esql-to_string.txt | 0 .../esql_docs/esql-to_unsigned_long.txt | 0 .../nl_to_esql/esql_docs/esql-to_upper.txt | 0 .../nl_to_esql/esql_docs/esql-to_version.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-top.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-trim.txt | 0 .../nl_to_esql/esql_docs/esql-values.txt | 0 .../esql_docs/esql-weighted_avg.txt | 0 .../tasks/nl_to_esql/esql_docs/esql-where.txt | 0 .../server/tasks/nl_to_esql/index.ts | 0 .../tasks/nl_to_esql/system_message.txt | 0 .../inference/server/tasks/nl_to_esql/task.ts | 0 .../server/tasks/nl_to_esql/types.ts | 0 .../tasks/nl_to_esql/validate_esql_query.ts | 0 .../server/test_utils/chat_complete_events.ts | 0 .../plugins/shared}/inference/server/types.ts | 0 ...vent_source_stream_into_observable.test.ts | 0 .../event_source_stream_into_observable.ts | 0 .../server/util/get_connector_by_id.test.ts | 0 .../server/util/get_connector_by_id.ts | 0 ...bservable_into_event_source_stream.test.ts | 0 .../observable_into_event_source_stream.ts | 0 .../server/util/validate_tool_calls.test.ts | 0 .../server/util/validate_tool_calls.ts | 0 .../plugins/shared}/inference/tsconfig.json | 4 +- yarn.lock | 10 +- 403 files changed, 280 insertions(+), 280 deletions(-) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/README.md (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/jest.config.js (72%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/package.json (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/chat_complete/api.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/chat_complete/bound_api.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/chat_complete/errors.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/chat_complete/event_utils.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/chat_complete/events.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/chat_complete/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/chat_complete/messages.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/chat_complete/tool_schema.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/chat_complete/tools.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/errors.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/inference_task.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/output/api.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/output/bound_api.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/output/event_utils.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/output/events.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/output/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/src/truncate_list.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/inference-common/tsconfig.json (81%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/README.md (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/jest.config.js (72%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/package.json (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/src/artifact.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/src/artifact.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/src/artifact_content.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/src/artifact_content.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/src/documents.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/src/indices.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/src/manifest.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/src/product.ts (100%) rename x-pack/{packages => platform/packages/shared}/ai-infra/product-doc-common/tsconfig.json (79%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/jest.config.js (64%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/tasks/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/tasks/retrieve_documentation/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/tasks/retrieve_documentation/summarize_document.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/utils/tokens.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/server/utils/tokens.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/llm_tasks/tsconfig.json (85%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/common/consts.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/common/http_api/installation.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/common/install_status.ts (100%) rename x-pack/{plugins/inference => platform/plugins/shared/ai_infra/product_doc_base}/jest.config.js (51%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/public/services/installation/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/public/services/installation/installation_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/public/services/installation/installation_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/public/services/installation/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/routes/installation.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/saved_objects/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/saved_objects/product_doc_install.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_install_status/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_install_status/service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_manager/check_license.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_manager/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/doc_manager/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/inference_endpoint/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/inference_endpoint/service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/inference_endpoint/utils/get_model_install_status.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/inference_endpoint/utils/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/inference_endpoint/utils/install_elser.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/inference_endpoint/utils/wait_until_model_deployed.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/package_installer.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/steps/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/utils/download.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/utils/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/utils/semver.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/utils/semver.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/utils/test_data/test_archive_1.zip (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/search/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/search/perform_search.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/search/search_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/search/search_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/search/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/search/utils/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/search/utils/map_result.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/services/search/utils/map_result.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/tasks/ensure_up_to_date.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/tasks/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/tasks/install_all.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/tasks/uninstall_all.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/tasks/utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/ai_infra/product_doc_base/tsconfig.json (86%) rename x-pack/{plugins => platform/plugins/shared}/inference/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/chat_complete/bind_chat_complete.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/chat_complete/bind_chat_complete.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/chat_complete/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/connectors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/http_apis.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/output/bind_output.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/output/bind_output.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/output/create_output_api.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/output/create_output_api.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/output/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/tasks/nl_to_esql/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/tasks/nl_to_esql/correct_query_with_actions.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/tasks/nl_to_esql/correct_query_with_actions.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/tasks/nl_to_esql/get_errors_with_commands.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/tasks/nl_to_esql/get_errors_with_commands.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/utils/ensure_multi_turn.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/common/utils/generate_fake_tool_call_id.ts (100%) rename x-pack/{plugins/ai_infra/product_doc_base => platform/plugins/shared/inference}/jest.config.js (61%) rename x-pack/{plugins => platform/plugins/shared}/inference/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/public/chat_complete.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/public/chat_complete.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/public/util/create_observable_from_http_response.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/public/util/http_response_into_observable.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/public/util/http_response_into_observable.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/evaluation/.eslintrc.json (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/evaluation/README.md (94%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/evaluation/cli.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/evaluation/evaluation.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/evaluation/evaluation_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/evaluation/index.js (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/evaluation/scenarios/esql/index.spec.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/evaluation/services/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/evaluation/table_renderer.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/evaluation/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/extract_doc_entries.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/generate_doc.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/index.js (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/load_esql_docs.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/prompts/convert_to_markdown.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/prompts/create_documentation_page.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/prompts/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/prompts/rewrite_function_page.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/sync_built_docs_repo.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/load_esql_docs/utils/output_executor.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/util/cli_options.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/util/get_service_urls.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/util/kibana_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/util/read_kibana_config.ts (98%) rename x-pack/{plugins => platform/plugins/shared}/inference/scripts/util/select_connector.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/prompts.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/serde_utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/serde_utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/bedrock/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/gemini/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/gemini/process_vertex_stream.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/gemini/process_vertex_stream.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/gemini/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/get_inference_adapter.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/get_inference_adapter.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/openai/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/adapters/openai/openai_adapter.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/api.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/errors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/simulated_function_calling/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/simulated_function_calling/get_system_instructions.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/simulated_function_calling/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/simulated_function_calling/parse_inline_function_calls.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/utils/chunks_into_message.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/utils/chunks_into_message.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/utils/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/utils/inference_executor.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/utils/inference_executor.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/utils/stream_to_response.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/chat_complete/utils/stream_to_response.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/inference_client/bind_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/inference_client/create_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/inference_client/create_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/inference_client/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/inference_client/inference_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/inference_client/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/routes/chat_complete.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/routes/connectors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/actions/generate_esql.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/actions/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/actions/request_documentation.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/actions/shared.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/doc_base/aliases.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/doc_base/esql_doc_base.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/doc_base/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/doc_base/load_data.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/doc_base/suggestions.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/doc_base/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-abs.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-acos.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-asin.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-atan.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-atan2.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-avg.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-bucket.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-case.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-cbrt.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-ceil.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-cidr_match.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-coalesce.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-concat.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-cos.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-cosh.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-count.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-count_distinct.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-date_diff.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-date_extract.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-date_format.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-date_parse.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-date_trunc.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-dissect.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-drop.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-e.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-ends_with.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-enrich.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-eval.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-exp.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-floor.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-from.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-from_base64.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-greatest.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-grok.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-ip_prefix.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-keep.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-least.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-left.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-length.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-limit.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-locate.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-log.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-log10.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-lookup.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-ltrim.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-max.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-median.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-median_absolute_deviation.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-min.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_append.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_avg.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_concat.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_count.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_dedupe.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_expand.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_first.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_last.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_max.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_median.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_min.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_pseries_weighted_sum.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_slice.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sort.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sum.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_zip.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-now.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-operators.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-overview.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-percentile.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-pi.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-pow.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-rename.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-repeat.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-replace.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-right.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-round.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-row.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-rtrim.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-show.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-signum.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-sin.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-sinh.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-sort.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-split.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-sqrt.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-st_centroid_agg.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-st_contains.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-st_disjoint.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-st_distance.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-st_intersects.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-st_within.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-st_x.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-st_y.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-starts_with.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-stats.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-substring.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-sum.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-syntax.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-tan.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-tanh.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-tau.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_base64.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_boolean.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianpoint.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianshape.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_datetime.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_degrees.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_double.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geopoint.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geoshape.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_integer.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_ip.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_long.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_lower.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_radians.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_string.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_unsigned_long.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_upper.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-to_version.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-top.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-trim.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-values.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-weighted_avg.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/esql_docs/esql-where.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/system_message.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/task.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/tasks/nl_to_esql/validate_esql_query.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/test_utils/chat_complete_events.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/util/event_source_stream_into_observable.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/util/event_source_stream_into_observable.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/util/get_connector_by_id.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/util/get_connector_by_id.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/util/observable_into_event_source_stream.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/util/observable_into_event_source_stream.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/util/validate_tool_calls.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/server/util/validate_tool_calls.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/inference/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8662c30e29f89..a8c2bca60903e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -771,9 +771,7 @@ x-pack/examples/third_party_maps_source_example @elastic/kibana-presentation x-pack/examples/third_party_vis_lens_example @elastic/kibana-visualizations x-pack/examples/triggers_actions_ui_example @elastic/response-ops x-pack/examples/ui_actions_enhanced_examples @elastic/appex-sharedux -x-pack/packages/ai-infra/inference-common @elastic/appex-ai-infra x-pack/packages/ai-infra/product-doc-artifact-builder @elastic/appex-ai-infra -x-pack/packages/ai-infra/product-doc-common @elastic/appex-ai-infra x-pack/packages/index-lifecycle-management/index_lifecycle_management_common_shared @elastic/kibana-management x-pack/packages/index-management/index_management_shared_types @elastic/kibana-management x-pack/packages/kbn-ai-assistant @elastic/search-kibana @@ -862,9 +860,12 @@ x-pack/packages/security/plugin_types_server @elastic/kibana-security x-pack/packages/security/role_management_model @elastic/kibana-security x-pack/packages/security/ui_components @elastic/kibana-security x-pack/performance @elastic/appex-qa +x-pack/platform/packages/shared/ai-infra/inference-common @elastic/appex-ai-infra +x-pack/platform/packages/shared/ai-infra/product-doc-common @elastic/appex-ai-infra +x-pack/platform/plugins/shared/ai_infra/llm_tasks @elastic/appex-ai-infra +x-pack/platform/plugins/shared/ai_infra/product_doc_base @elastic/appex-ai-infra +x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra x-pack/plugins/actions @elastic/response-ops -x-pack/plugins/ai_infra/llm_tasks @elastic/appex-ai-infra -x-pack/plugins/ai_infra/product_doc_base @elastic/appex-ai-infra x-pack/plugins/aiops @elastic/ml-ui x-pack/plugins/alerting @elastic/response-ops x-pack/plugins/banners @elastic/appex-sharedux @@ -904,7 +905,6 @@ x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/grokdebugger @elastic/kibana-management x-pack/plugins/index_lifecycle_management @elastic/kibana-management x-pack/plugins/index_management @elastic/kibana-management -x-pack/plugins/inference @elastic/appex-ai-infra x-pack/plugins/ingest_pipelines @elastic/kibana-management x-pack/plugins/integration_assistant @elastic/security-scalability x-pack/plugins/kubernetes_security @elastic/kibana-cloud-security-posture diff --git a/api_docs/inference.devdocs.json b/api_docs/inference.devdocs.json index 340b5e87d7f0d..7b06c51158397 100644 --- a/api_docs/inference.devdocs.json +++ b/api_docs/inference.devdocs.json @@ -17,7 +17,7 @@ "StreamedHttpResponse", ", T>" ], - "path": "x-pack/plugins/inference/public/util/http_response_into_observable.ts", + "path": "x-pack/platform/plugins/shared/inference/public/util/http_response_into_observable.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -36,7 +36,7 @@ "tags": [], "label": "InferencePublicSetup", "description": [], - "path": "x-pack/plugins/inference/public/types.ts", + "path": "x-pack/platform/plugins/shared/inference/public/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -50,7 +50,7 @@ "tags": [], "label": "InferencePublicStart", "description": [], - "path": "x-pack/plugins/inference/public/types.ts", + "path": "x-pack/platform/plugins/shared/inference/public/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -96,7 +96,7 @@ }, "" ], - "path": "x-pack/plugins/inference/public/types.ts", + "path": "x-pack/platform/plugins/shared/inference/public/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -127,7 +127,7 @@ }, " | undefined; } & TToolOptions" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false } @@ -163,7 +163,7 @@ }, "" ], - "path": "x-pack/plugins/inference/public/types.ts", + "path": "x-pack/platform/plugins/shared/inference/public/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -185,7 +185,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false } @@ -203,7 +203,7 @@ "InferenceConnector", "[]>" ], - "path": "x-pack/plugins/inference/public/types.ts", + "path": "x-pack/platform/plugins/shared/inference/public/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -233,7 +233,7 @@ "NlToEsqlTaskEvent", ">" ], - "path": "x-pack/plugins/inference/server/tasks/nl_to_esql/task.ts", + "path": "x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/task.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -248,7 +248,7 @@ "NlToEsqlTaskParams", "" ], - "path": "x-pack/plugins/inference/server/tasks/nl_to_esql/task.ts", + "path": "x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/task.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -268,7 +268,7 @@ "description": [ "\nA version of the {@link InferenceClient} that is pre-bound to a set of parameters." ], - "path": "x-pack/plugins/inference/server/inference_client/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/inference_client/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -316,7 +316,7 @@ }, "" ], - "path": "x-pack/plugins/inference/server/inference_client/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/inference_client/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -339,7 +339,7 @@ }, "[P]; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/bound_api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/bound_api.ts", "deprecated": false, "trackAdoption": false } @@ -377,7 +377,7 @@ }, "" ], - "path": "x-pack/plugins/inference/server/inference_client/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/inference_client/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -400,7 +400,7 @@ }, "[] | undefined; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/bound_api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/bound_api.ts", "deprecated": false, "trackAdoption": false } @@ -420,7 +420,7 @@ "InferenceConnector", ">" ], - "path": "x-pack/plugins/inference/server/inference_client/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/inference_client/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -434,7 +434,7 @@ "signature": [ "string" ], - "path": "x-pack/plugins/inference/server/inference_client/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/inference_client/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -454,7 +454,7 @@ "description": [ "\nAn inference client, scoped to a request, that can be used to interact with LLMs." ], - "path": "x-pack/plugins/inference/server/inference_client/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/inference_client/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -502,7 +502,7 @@ }, "" ], - "path": "x-pack/plugins/inference/server/inference_client/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/inference_client/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -533,7 +533,7 @@ }, " | undefined; } & TToolOptions" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false } @@ -571,7 +571,7 @@ }, "" ], - "path": "x-pack/plugins/inference/server/inference_client/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/inference_client/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -593,7 +593,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false } @@ -613,7 +613,7 @@ "InferenceConnector", ">" ], - "path": "x-pack/plugins/inference/server/inference_client/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/inference_client/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -627,7 +627,7 @@ "signature": [ "string" ], - "path": "x-pack/plugins/inference/server/inference_client/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/inference_client/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -651,7 +651,7 @@ "description": [ "\nSetup contract of the inference plugin." ], - "path": "x-pack/plugins/inference/server/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -667,7 +667,7 @@ "description": [ "\nStart contract of the inference plugin, exposing APIs to interact with LLMs." ], - "path": "x-pack/plugins/inference/server/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -702,7 +702,7 @@ "text": "InferenceClient" } ], - "path": "x-pack/plugins/inference/server/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -716,7 +716,7 @@ "signature": [ "T" ], - "path": "x-pack/plugins/inference/server/types.ts", + "path": "x-pack/platform/plugins/shared/inference/server/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -742,7 +742,7 @@ "signature": [ "(query: string) => { isCorrection: boolean; input: string; output: string; }" ], - "path": "x-pack/plugins/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts", + "path": "x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -756,7 +756,7 @@ "signature": [ "string" ], - "path": "x-pack/plugins/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts", + "path": "x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -790,7 +790,7 @@ "text": "OutputAPI" } ], - "path": "x-pack/plugins/inference/common/output/create_output_api.ts", + "path": "x-pack/platform/plugins/shared/inference/common/output/create_output_api.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -810,7 +810,7 @@ "text": "ChatCompleteAPI" } ], - "path": "x-pack/plugins/inference/common/output/create_output_api.ts", + "path": "x-pack/platform/plugins/shared/inference/common/output/create_output_api.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -873,7 +873,7 @@ "AugmentedRequired", " | FromToolSchemaArray | undefined; }, never> | undefined; }>" ], - "path": "x-pack/plugins/inference/common/output/create_output_api.ts", + "path": "x-pack/platform/plugins/shared/inference/common/output/create_output_api.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -893,7 +893,7 @@ "text": "ChatCompleteAPI" } ], - "path": "x-pack/plugins/inference/common/output/create_output_api.ts", + "path": "x-pack/platform/plugins/shared/inference/common/output/create_output_api.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -912,7 +912,7 @@ "signature": [ "() => string" ], - "path": "x-pack/plugins/inference/common/utils/generate_fake_tool_call_id.ts", + "path": "x-pack/platform/plugins/shared/inference/common/utils/generate_fake_tool_call_id.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -929,7 +929,7 @@ "signature": [ "(query: string) => { name: string | undefined; command: string; }[]" ], - "path": "x-pack/plugins/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts", + "path": "x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -943,7 +943,7 @@ "signature": [ "string" ], - "path": "x-pack/plugins/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts", + "path": "x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -961,7 +961,7 @@ "tags": [], "label": "GetConnectorsResponseBody", "description": [], - "path": "x-pack/plugins/inference/common/http_apis.ts", + "path": "x-pack/platform/plugins/shared/inference/common/http_apis.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -976,7 +976,7 @@ "InferenceConnector", "[]" ], - "path": "x-pack/plugins/inference/common/http_apis.ts", + "path": "x-pack/platform/plugins/shared/inference/common/http_apis.ts", "deprecated": false, "trackAdoption": false } @@ -1020,7 +1020,7 @@ }, "" ], - "path": "x-pack/plugins/inference/common/http_apis.ts", + "path": "x-pack/platform/plugins/shared/inference/common/http_apis.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_core_http_server.devdocs.json b/api_docs/kbn_core_http_server.devdocs.json index e00fe9fba4edb..95adcf458f15b 100644 --- a/api_docs/kbn_core_http_server.devdocs.json +++ b/api_docs/kbn_core_http_server.devdocs.json @@ -4191,7 +4191,7 @@ }, { "plugin": "inference", - "path": "x-pack/plugins/inference/server/routes/connectors.ts" + "path": "x-pack/platform/plugins/shared/inference/server/routes/connectors.ts" }, { "plugin": "globalSearch", @@ -4971,7 +4971,7 @@ }, { "plugin": "productDocBase", - "path": "x-pack/plugins/ai_infra/product_doc_base/server/routes/installation.ts" + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/installation.ts" }, { "plugin": "customBranding", @@ -6869,11 +6869,11 @@ }, { "plugin": "inference", - "path": "x-pack/plugins/inference/server/routes/chat_complete.ts" + "path": "x-pack/platform/plugins/shared/inference/server/routes/chat_complete.ts" }, { "plugin": "inference", - "path": "x-pack/plugins/inference/server/routes/chat_complete.ts" + "path": "x-pack/platform/plugins/shared/inference/server/routes/chat_complete.ts" }, { "plugin": "globalSearch", @@ -7553,11 +7553,11 @@ }, { "plugin": "productDocBase", - "path": "x-pack/plugins/ai_infra/product_doc_base/server/routes/installation.ts" + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/installation.ts" }, { "plugin": "productDocBase", - "path": "x-pack/plugins/ai_infra/product_doc_base/server/routes/installation.ts" + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/installation.ts" }, { "plugin": "grokdebugger", diff --git a/api_docs/kbn_inference_common.devdocs.json b/api_docs/kbn_inference_common.devdocs.json index 9cb8c900b21db..a094d0714b82d 100644 --- a/api_docs/kbn_inference_common.devdocs.json +++ b/api_docs/kbn_inference_common.devdocs.json @@ -37,7 +37,7 @@ }, " extends Error" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -51,7 +51,7 @@ "signature": [ "any" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -65,7 +65,7 @@ "signature": [ "TCode" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -80,7 +80,7 @@ "signature": [ "string" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -95,7 +95,7 @@ "signature": [ "TMeta" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -120,7 +120,7 @@ "text": "InferenceTaskErrorEvent" } ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -148,7 +148,7 @@ "text": "InferenceTaskInternalError" } ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -162,7 +162,7 @@ "signature": [ "string" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -177,7 +177,7 @@ "signature": [ "Record | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -203,7 +203,7 @@ "text": "InferenceTaskRequestError" } ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -217,7 +217,7 @@ "signature": [ "string" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -232,7 +232,7 @@ "signature": [ "number" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -269,7 +269,7 @@ }, ">) => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -298,7 +298,7 @@ }, ">" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -327,7 +327,7 @@ }, ") => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -347,7 +347,7 @@ "text": "InferenceTaskEvent" } ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -376,7 +376,7 @@ }, ") => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -397,7 +397,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -434,7 +434,7 @@ }, ">) => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -463,7 +463,7 @@ }, ">" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -482,7 +482,7 @@ "signature": [ "(error: unknown) => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -496,7 +496,7 @@ "signature": [ "unknown" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -515,7 +515,7 @@ "signature": [ "(error: unknown) => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -529,7 +529,7 @@ "signature": [ "unknown" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -548,7 +548,7 @@ "signature": [ "(error: unknown) => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -562,7 +562,7 @@ "signature": [ "unknown" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -583,7 +583,7 @@ "signature": [ "(event: TOutputEvent) => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -597,7 +597,7 @@ "signature": [ "TOutputEvent" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -626,7 +626,7 @@ }, ") => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -646,7 +646,7 @@ "text": "InferenceTaskEvent" } ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -675,7 +675,7 @@ }, ") => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -696,7 +696,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -717,7 +717,7 @@ "signature": [ "(error: Error) => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -731,7 +731,7 @@ "signature": [ "Error" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -752,7 +752,7 @@ "signature": [ "(error: Error) => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -766,7 +766,7 @@ "signature": [ "Error" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -787,7 +787,7 @@ "signature": [ "(error: Error | undefined) => boolean" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -801,7 +801,7 @@ "signature": [ "Error | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -820,7 +820,7 @@ "signature": [ "(values: T[], limit: number) => (string | T)[]" ], - "path": "x-pack/packages/ai-infra/inference-common/src/truncate_list.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/truncate_list.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -834,7 +834,7 @@ "signature": [ "T[]" ], - "path": "x-pack/packages/ai-infra/inference-common/src/truncate_list.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/truncate_list.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -849,7 +849,7 @@ "signature": [ "number" ], - "path": "x-pack/packages/ai-infra/inference-common/src/truncate_list.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/truncate_list.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -880,7 +880,7 @@ }, ">>" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -909,7 +909,7 @@ }, ">>" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -938,7 +938,7 @@ }, ">>" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -966,7 +966,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -979,7 +979,7 @@ "description": [ "\nThe text content of the LLM response." ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1002,7 +1002,7 @@ }, "[\"toolCalls\"]" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1025,7 +1025,7 @@ }, " | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false } @@ -1041,7 +1041,7 @@ "description": [ "\nRepresent a partial tool call present in a chunk event.\n\nNote that all properties of the structure, except from the index,\nare partial and must be aggregated." ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1054,7 +1054,7 @@ "description": [ "\nThe tool call index (position in the tool call array)." ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false }, @@ -1067,7 +1067,7 @@ "description": [ "\nchunk of tool call id." ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false }, @@ -1081,7 +1081,7 @@ "signature": [ "{ name: string; arguments: string; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false } @@ -1097,7 +1097,7 @@ "description": [ "\nToken count structure for the chatComplete API." ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1110,7 +1110,7 @@ "description": [ "\nInput token count" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false }, @@ -1123,7 +1123,7 @@ "description": [ "\nOutput token count" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false }, @@ -1136,7 +1136,7 @@ "description": [ "\nTotal token count" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false } @@ -1162,7 +1162,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/inference_task.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/inference_task.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1178,7 +1178,7 @@ "signature": [ "TEventType" ], - "path": "x-pack/packages/ai-infra/inference-common/src/inference_task.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/inference_task.ts", "deprecated": false, "trackAdoption": false } @@ -1204,7 +1204,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1220,7 +1220,7 @@ "signature": [ "TId" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1233,7 +1233,7 @@ "description": [ "\nThe ID of the connector to use.\nMust be an inference connector, or an error will be thrown." ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1249,7 +1249,7 @@ "signature": [ "string | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1262,7 +1262,7 @@ "description": [ "\nThe prompt for the LLM." ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1278,7 +1278,7 @@ "signature": [ "TOutputSchema | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1301,7 +1301,7 @@ }, "[] | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1324,7 +1324,7 @@ }, " | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1340,7 +1340,7 @@ "signature": [ "TStream | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false } @@ -1366,7 +1366,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1382,7 +1382,7 @@ "signature": [ "TId" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1398,7 +1398,7 @@ "signature": [ "TOutput" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false }, @@ -1411,7 +1411,7 @@ "description": [ "\nPotential text content provided by the LLM, if it was provided in addition to the tool call." ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false } @@ -1437,7 +1437,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1450,7 +1450,7 @@ "description": [ "\nThe id of the tool call, that must be re-used when providing the tool call response" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false }, @@ -1464,7 +1464,7 @@ "signature": [ "{ name: TName; } & (TArguments extends Record ? { arguments: TArguments; } : {})" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false } @@ -1480,7 +1480,7 @@ "description": [ "\nThe definition of a tool that will be provided to the LLM for it to eventually call." ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1493,7 +1493,7 @@ "description": [ "\nA description of what the tool does. Note that this will be exposed to the LLM,\nso the description should be explicit about what the tool does and when to call it." ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false }, @@ -1510,7 +1510,7 @@ "ToolSchemaTypeObject", " | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false } @@ -1536,7 +1536,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1559,7 +1559,7 @@ }, " | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false }, @@ -1583,7 +1583,7 @@ }, "> | undefined" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false } @@ -1599,7 +1599,7 @@ "description": [ "\nRepresents a tool call from the LLM before correctly converted to the schema type.\n\nOnly publicly exposed because referenced by {@link ChatCompletionToolValidationError}" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1610,7 +1610,7 @@ "tags": [], "label": "toolCallId", "description": [], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false }, @@ -1624,7 +1624,7 @@ "signature": [ "{ name: string; arguments: string; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false } @@ -1642,7 +1642,7 @@ "description": [ "\nList of code of error that are specific to the {@link ChatCompleteAPI}" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1656,7 +1656,7 @@ "description": [ "\nList possible values of {@link ChatCompletionEvent} types." ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1670,7 +1670,7 @@ "description": [ "\nEnum for generic inference error codes." ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1684,7 +1684,7 @@ "description": [ "\nEnum for all possible {@link Message} roles." ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/messages.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1698,7 +1698,7 @@ "description": [ "\nList possible values of {@link OutputEvent} types." ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/events.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1712,7 +1712,7 @@ "description": [ "\nTool invocation choice type.\n\nRefer to {@link ToolChoice} for more details." ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1747,7 +1747,7 @@ }, " | undefined>[] | undefined; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/messages.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1796,7 +1796,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/bound_api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/bound_api.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -1819,7 +1819,7 @@ }, "[P]; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/bound_api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/bound_api.ts", "deprecated": false, "trackAdoption": false } @@ -1854,7 +1854,7 @@ }, "[\"functionCalling\"] | undefined; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/bound_api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/bound_api.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1891,7 +1891,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/bound_api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/bound_api.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -1914,7 +1914,7 @@ }, "[] | undefined; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/bound_api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/bound_api.ts", "deprecated": false, "trackAdoption": false } @@ -1941,7 +1941,7 @@ }, " | undefined; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/bound_api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/bound_api.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1990,7 +1990,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -2021,7 +2021,7 @@ }, " | undefined; } & TToolOptions" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false } @@ -2056,7 +2056,7 @@ }, ">" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2089,7 +2089,7 @@ }, " | undefined; } & TToolOptions" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2115,7 +2115,7 @@ }, ">" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2155,7 +2155,7 @@ }, "[]; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2195,7 +2195,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2235,7 +2235,7 @@ }, "[\"toolCalls\"]; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2275,7 +2275,7 @@ }, "; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2307,7 +2307,7 @@ }, ".TokenLimitReachedError, { tokenLimit?: number | undefined; tokenCount?: number | undefined; }>" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2339,7 +2339,7 @@ }, ".ToolNotFoundError, { name: string; }>" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2379,7 +2379,7 @@ }, "[] | undefined; }>" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2398,7 +2398,7 @@ "ToolSchemaTypeObject", " ? FromToolSchemaObject : TToolSchema extends ToolSchemaTypeArray ? FromToolSchemaArray : TToolSchema extends ToolSchemaTypeBoolean ? boolean : TToolSchema extends ToolSchemaTypeNumber ? number : TToolSchema extends ToolSchemaTypeString ? FromToolSchemaString : never" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tool_schema.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tool_schema.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2415,7 +2415,7 @@ "signature": [ "\"native\" | \"simulated\"" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2445,7 +2445,7 @@ }, "> & { error: { code: string; message: string; meta?: Record | undefined; }; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2467,7 +2467,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/inference_task.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/inference_task.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2479,7 +2479,7 @@ "tags": [], "label": "InferenceTaskEventType", "description": [], - "path": "x-pack/packages/ai-infra/inference-common/src/inference_task.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/inference_task.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2509,7 +2509,7 @@ }, ".internalError, Record>" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2539,7 +2539,7 @@ }, ".requestError, { status: number; }>" ], - "path": "x-pack/packages/ai-infra/inference-common/src/errors.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2579,7 +2579,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/messages.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2596,7 +2596,7 @@ "signature": [ "unknown" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/events.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2633,7 +2633,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -2655,7 +2655,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false } @@ -2689,7 +2689,7 @@ }, ".OutputComplete> & { id: TId; output: TOutput; content: string; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/events.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2732,7 +2732,7 @@ }, " : undefined>>" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2764,7 +2764,7 @@ }, "" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/events.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2800,7 +2800,7 @@ }, " : undefined>>" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2832,7 +2832,7 @@ }, ".OutputUpdate> & { id: TId; content: string; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/events.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/events.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2865,7 +2865,7 @@ }, ".none; } ? { toolCalls: []; } : { toolCalls: ToolResponsesOf>; } : { toolCalls: never; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2889,7 +2889,7 @@ }, " | CustomToolChoice" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2914,7 +2914,7 @@ }, ".Tool> & { toolCallId: string; response: TToolResponse; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/messages.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2931,7 +2931,7 @@ "signature": [ "ToolSchemaTypeObject" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tool_schema.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tool_schema.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2949,7 +2949,7 @@ "ToolSchemaTypeObject", " | ToolSchemaTypeString | ToolSchemaTypeBoolean | ToolSchemaTypeNumber | ToolSchemaTypeArray" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/tool_schema.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tool_schema.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2974,7 +2974,7 @@ }, "[P]; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/bound_api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/bound_api.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2999,7 +2999,7 @@ }, "[] | undefined; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/output/bound_api.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/output/bound_api.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -3024,7 +3024,7 @@ }, ".User> & { content: string; }" ], - "path": "x-pack/packages/ai-infra/inference-common/src/chat_complete/messages.ts", + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_product_doc_common.devdocs.json b/api_docs/kbn_product_doc_common.devdocs.json index f5c8ea4e0e653..33547649b923a 100644 --- a/api_docs/kbn_product_doc_common.devdocs.json +++ b/api_docs/kbn_product_doc_common.devdocs.json @@ -29,7 +29,7 @@ "signature": [ "({ productName, productVersion, excludeExtension, }: { productName: \"security\" | \"kibana\" | \"observability\" | \"elasticsearch\"; productVersion: string; excludeExtension?: boolean | undefined; }) => string" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/artifact.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -40,7 +40,7 @@ "tags": [], "label": "{\n productName,\n productVersion,\n excludeExtension = false,\n}", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/artifact.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -54,7 +54,7 @@ "signature": [ "\"security\" | \"kibana\" | \"observability\" | \"elasticsearch\"" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/artifact.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts", "deprecated": false, "trackAdoption": false }, @@ -65,7 +65,7 @@ "tags": [], "label": "productVersion", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/artifact.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts", "deprecated": false, "trackAdoption": false }, @@ -79,7 +79,7 @@ "signature": [ "boolean | undefined" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/artifact.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts", "deprecated": false, "trackAdoption": false } @@ -99,7 +99,7 @@ "signature": [ "(productName: \"security\" | \"kibana\" | \"observability\" | \"elasticsearch\") => string" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/indices.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/indices.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -113,7 +113,7 @@ "signature": [ "\"security\" | \"kibana\" | \"observability\" | \"elasticsearch\"" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/indices.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/indices.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -132,7 +132,7 @@ "signature": [ "(path: string) => boolean" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/artifact_content.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact_content.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -146,7 +146,7 @@ "signature": [ "string" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/artifact_content.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact_content.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -165,7 +165,7 @@ "signature": [ "(artifactName: string) => { productName: \"security\" | \"kibana\" | \"observability\" | \"elasticsearch\"; productVersion: string; } | undefined" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/artifact.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -179,7 +179,7 @@ "signature": [ "string" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/artifact.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -197,7 +197,7 @@ "tags": [], "label": "ArtifactManifest", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/manifest.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/manifest.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -208,7 +208,7 @@ "tags": [], "label": "formatVersion", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/manifest.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/manifest.ts", "deprecated": false, "trackAdoption": false }, @@ -222,7 +222,7 @@ "signature": [ "\"security\" | \"kibana\" | \"observability\" | \"elasticsearch\"" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/manifest.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/manifest.ts", "deprecated": false, "trackAdoption": false }, @@ -233,7 +233,7 @@ "tags": [], "label": "productVersion", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/manifest.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/manifest.ts", "deprecated": false, "trackAdoption": false } @@ -247,7 +247,7 @@ "tags": [], "label": "ProductDocumentationAttributes", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -258,7 +258,7 @@ "tags": [], "label": "content_title", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false }, @@ -272,7 +272,7 @@ "signature": [ "SemanticTextField" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false }, @@ -286,7 +286,7 @@ "signature": [ "\"security\" | \"kibana\" | \"observability\" | \"elasticsearch\"" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false }, @@ -297,7 +297,7 @@ "tags": [], "label": "root_type", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false }, @@ -308,7 +308,7 @@ "tags": [], "label": "slug", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false }, @@ -319,7 +319,7 @@ "tags": [], "label": "url", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false }, @@ -330,7 +330,7 @@ "tags": [], "label": "version", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false }, @@ -341,7 +341,7 @@ "tags": [], "label": "ai_subtitle", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false }, @@ -355,7 +355,7 @@ "signature": [ "SemanticTextField" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false }, @@ -369,7 +369,7 @@ "signature": [ "SemanticTextArrayField" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false }, @@ -383,7 +383,7 @@ "signature": [ "string[]" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/documents.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts", "deprecated": false, "trackAdoption": false } @@ -399,7 +399,7 @@ "tags": [], "label": "DocumentationProduct", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/product.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/product.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -413,7 +413,7 @@ "tags": [], "label": "productDocIndexPattern", "description": [], - "path": "x-pack/packages/ai-infra/product-doc-common/src/indices.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/indices.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -428,7 +428,7 @@ "signature": [ "\".kibana_ai_product_doc\"" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/indices.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/indices.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -443,7 +443,7 @@ "signature": [ "\"security\" | \"kibana\" | \"observability\" | \"elasticsearch\"" ], - "path": "x-pack/packages/ai-infra/product-doc-common/src/product.ts", + "path": "x-pack/platform/packages/shared/ai-infra/product-doc-common/src/product.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/llm_tasks.devdocs.json b/api_docs/llm_tasks.devdocs.json index be33e1e8cbf53..39638b49a1e87 100644 --- a/api_docs/llm_tasks.devdocs.json +++ b/api_docs/llm_tasks.devdocs.json @@ -24,7 +24,7 @@ "description": [ "\nDescribes public llmTasks plugin contract returned at the `setup` stage." ], - "path": "x-pack/plugins/ai_infra/llm_tasks/server/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -40,7 +40,7 @@ "description": [ "\nDescribes public llmTasks plugin contract returned at the `start` stage." ], - "path": "x-pack/plugins/ai_infra/llm_tasks/server/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -56,7 +56,7 @@ "signature": [ "() => Promise" ], - "path": "x-pack/plugins/ai_infra/llm_tasks/server/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -80,7 +80,7 @@ "RetrieveDocumentationResult", ">" ], - "path": "x-pack/plugins/ai_infra/llm_tasks/server/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -95,7 +95,7 @@ "signature": [ "RetrieveDocumentationParams" ], - "path": "x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/product_doc_base.devdocs.json b/api_docs/product_doc_base.devdocs.json index c6d82bc6f79ef..71ded441b875c 100644 --- a/api_docs/product_doc_base.devdocs.json +++ b/api_docs/product_doc_base.devdocs.json @@ -14,7 +14,7 @@ "tags": [], "label": "ProductDocBasePluginSetup", "description": [], - "path": "x-pack/plugins/ai_infra/product_doc_base/public/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -28,7 +28,7 @@ "tags": [], "label": "ProductDocBasePluginStart", "description": [], - "path": "x-pack/plugins/ai_infra/product_doc_base/public/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -42,7 +42,7 @@ "signature": [ "InstallationAPI" ], - "path": "x-pack/plugins/ai_infra/product_doc_base/public/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/types.ts", "deprecated": false, "trackAdoption": false } @@ -71,7 +71,7 @@ "DocSearchResponse", ">" ], - "path": "x-pack/plugins/ai_infra/product_doc_base/server/services/search/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -86,7 +86,7 @@ "signature": [ "DocSearchOptions" ], - "path": "x-pack/plugins/ai_infra/product_doc_base/server/services/search/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/types.ts", "deprecated": false, "trackAdoption": false } @@ -102,7 +102,7 @@ "tags": [], "label": "ProductDocBaseSetupContract", "description": [], - "path": "x-pack/plugins/ai_infra/product_doc_base/server/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -116,7 +116,7 @@ "tags": [], "label": "ProductDocBaseStartContract", "description": [], - "path": "x-pack/plugins/ai_infra/product_doc_base/server/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -134,7 +134,7 @@ "DocSearchResponse", ">" ], - "path": "x-pack/plugins/ai_infra/product_doc_base/server/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -149,7 +149,7 @@ "signature": [ "DocSearchOptions" ], - "path": "x-pack/plugins/ai_infra/product_doc_base/server/services/search/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/types.ts", "deprecated": false, "trackAdoption": false } @@ -165,7 +165,7 @@ "signature": [ "DocumentationManagerAPI" ], - "path": "x-pack/plugins/ai_infra/product_doc_base/server/types.ts", + "path": "x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/types.ts", "deprecated": false, "trackAdoption": false } diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 8e8ee80ff81be..de1e4701b7be4 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -639,7 +639,7 @@ Index Management by running this series of requests in Console: |This service is exposed from the Index Management setup contract and can be used to add content to the indices list and the index details page. -|{kib-repo}blob/{branch}/x-pack/plugins/inference/README.md[inference] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/inference/README.md[inference] |The inference plugin is a central place to handle all interactions with the Elasticsearch Inference API and external LLM APIs. Its goals are: @@ -694,7 +694,7 @@ the infrastructure monitoring use-case within Kibana. using the CURL scripts in the scripts folder. -|{kib-repo}blob/{branch}/x-pack/plugins/ai_infra/llm_tasks/README.md[llmTasks] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/ai_infra/llm_tasks/README.md[llmTasks] |This plugin contains various LLM tasks. @@ -775,7 +775,7 @@ Elastic. |This plugin helps users learn how to use the Painless scripting language. -|{kib-repo}blob/{branch}/x-pack/plugins/ai_infra/product_doc_base/README.md[productDocBase] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/ai_infra/product_doc_base/README.md[productDocBase] |This plugin contains the product documentation base service. diff --git a/package.json b/package.json index 873dbff00d258..d8dcbc0058a7e 100644 --- a/package.json +++ b/package.json @@ -576,8 +576,8 @@ "@kbn/index-management-plugin": "link:x-pack/plugins/index_management", "@kbn/index-management-shared-types": "link:x-pack/packages/index-management/index_management_shared_types", "@kbn/index-patterns-test-plugin": "link:test/plugin_functional/plugins/index_patterns", - "@kbn/inference-common": "link:x-pack/packages/ai-infra/inference-common", - "@kbn/inference-plugin": "link:x-pack/plugins/inference", + "@kbn/inference-common": "link:x-pack/platform/packages/shared/ai-infra/inference-common", + "@kbn/inference-plugin": "link:x-pack/platform/plugins/shared/inference", "@kbn/inference_integration_flyout": "link:x-pack/packages/ml/inference_integration_flyout", "@kbn/infra-forge": "link:x-pack/packages/kbn-infra-forge", "@kbn/infra-plugin": "link:x-pack/plugins/observability_solution/infra", @@ -619,7 +619,7 @@ "@kbn/licensing-plugin": "link:x-pack/plugins/licensing", "@kbn/links-plugin": "link:src/plugins/links", "@kbn/lists-plugin": "link:x-pack/plugins/lists", - "@kbn/llm-tasks-plugin": "link:x-pack/plugins/ai_infra/llm_tasks", + "@kbn/llm-tasks-plugin": "link:x-pack/platform/plugins/shared/ai_infra/llm_tasks", "@kbn/locator-examples-plugin": "link:examples/locator_examples", "@kbn/locator-explorer-plugin": "link:examples/locator_explorer", "@kbn/logging": "link:packages/kbn-logging", @@ -723,8 +723,8 @@ "@kbn/presentation-panel-plugin": "link:src/plugins/presentation_panel", "@kbn/presentation-publishing": "link:packages/presentation/presentation_publishing", "@kbn/presentation-util-plugin": "link:src/plugins/presentation_util", - "@kbn/product-doc-base-plugin": "link:x-pack/plugins/ai_infra/product_doc_base", - "@kbn/product-doc-common": "link:x-pack/packages/ai-infra/product-doc-common", + "@kbn/product-doc-base-plugin": "link:x-pack/platform/plugins/shared/ai_infra/product_doc_base", + "@kbn/product-doc-common": "link:x-pack/platform/packages/shared/ai-infra/product-doc-common", "@kbn/profiling-data-access-plugin": "link:x-pack/plugins/observability_solution/profiling_data_access", "@kbn/profiling-plugin": "link:x-pack/plugins/observability_solution/profiling", "@kbn/profiling-utils": "link:packages/kbn-profiling-utils", diff --git a/tsconfig.base.json b/tsconfig.base.json index ed8b402e2d179..e11ae1002fc61 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1058,10 +1058,10 @@ "@kbn/index-patterns-test-plugin/*": ["test/plugin_functional/plugins/index_patterns/*"], "@kbn/inference_integration_flyout": ["x-pack/packages/ml/inference_integration_flyout"], "@kbn/inference_integration_flyout/*": ["x-pack/packages/ml/inference_integration_flyout/*"], - "@kbn/inference-common": ["x-pack/packages/ai-infra/inference-common"], - "@kbn/inference-common/*": ["x-pack/packages/ai-infra/inference-common/*"], - "@kbn/inference-plugin": ["x-pack/plugins/inference"], - "@kbn/inference-plugin/*": ["x-pack/plugins/inference/*"], + "@kbn/inference-common": ["x-pack/platform/packages/shared/ai-infra/inference-common"], + "@kbn/inference-common/*": ["x-pack/platform/packages/shared/ai-infra/inference-common/*"], + "@kbn/inference-plugin": ["x-pack/platform/plugins/shared/inference"], + "@kbn/inference-plugin/*": ["x-pack/platform/plugins/shared/inference/*"], "@kbn/infra-forge": ["x-pack/packages/kbn-infra-forge"], "@kbn/infra-forge/*": ["x-pack/packages/kbn-infra-forge/*"], "@kbn/infra-plugin": ["x-pack/plugins/observability_solution/infra"], @@ -1156,8 +1156,8 @@ "@kbn/lint-ts-projects-cli/*": ["packages/kbn-lint-ts-projects-cli/*"], "@kbn/lists-plugin": ["x-pack/plugins/lists"], "@kbn/lists-plugin/*": ["x-pack/plugins/lists/*"], - "@kbn/llm-tasks-plugin": ["x-pack/plugins/ai_infra/llm_tasks"], - "@kbn/llm-tasks-plugin/*": ["x-pack/plugins/ai_infra/llm_tasks/*"], + "@kbn/llm-tasks-plugin": ["x-pack/platform/plugins/shared/ai_infra/llm_tasks"], + "@kbn/llm-tasks-plugin/*": ["x-pack/platform/plugins/shared/ai_infra/llm_tasks/*"], "@kbn/locator-examples-plugin": ["examples/locator_examples"], "@kbn/locator-examples-plugin/*": ["examples/locator_examples/*"], "@kbn/locator-explorer-plugin": ["examples/locator_explorer"], @@ -1400,10 +1400,10 @@ "@kbn/presentation-util-plugin/*": ["src/plugins/presentation_util/*"], "@kbn/product-doc-artifact-builder": ["x-pack/packages/ai-infra/product-doc-artifact-builder"], "@kbn/product-doc-artifact-builder/*": ["x-pack/packages/ai-infra/product-doc-artifact-builder/*"], - "@kbn/product-doc-base-plugin": ["x-pack/plugins/ai_infra/product_doc_base"], - "@kbn/product-doc-base-plugin/*": ["x-pack/plugins/ai_infra/product_doc_base/*"], - "@kbn/product-doc-common": ["x-pack/packages/ai-infra/product-doc-common"], - "@kbn/product-doc-common/*": ["x-pack/packages/ai-infra/product-doc-common/*"], + "@kbn/product-doc-base-plugin": ["x-pack/platform/plugins/shared/ai_infra/product_doc_base"], + "@kbn/product-doc-base-plugin/*": ["x-pack/platform/plugins/shared/ai_infra/product_doc_base/*"], + "@kbn/product-doc-common": ["x-pack/platform/packages/shared/ai-infra/product-doc-common"], + "@kbn/product-doc-common/*": ["x-pack/platform/packages/shared/ai-infra/product-doc-common/*"], "@kbn/profiling-data-access-plugin": ["x-pack/plugins/observability_solution/profiling_data_access"], "@kbn/profiling-data-access-plugin/*": ["x-pack/plugins/observability_solution/profiling_data_access/*"], "@kbn/profiling-plugin": ["x-pack/plugins/observability_solution/profiling"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 213c3f06f34aa..992570647a6c5 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -66,7 +66,7 @@ "xpack.fleet": "plugins/fleet", "xpack.ingestPipelines": "plugins/ingest_pipelines", "xpack.integrationAssistant": "plugins/integration_assistant", - "xpack.inference": "plugins/inference", + "xpack.inference": "platform/plugins/shared/inference", "xpack.inventory": "plugins/observability_solution/inventory", "xpack.investigate": "plugins/observability_solution/investigate", "xpack.investigateApp": "plugins/observability_solution/investigate_app", diff --git a/x-pack/packages/ai-infra/inference-common/README.md b/x-pack/platform/packages/shared/ai-infra/inference-common/README.md similarity index 100% rename from x-pack/packages/ai-infra/inference-common/README.md rename to x-pack/platform/packages/shared/ai-infra/inference-common/README.md diff --git a/x-pack/packages/ai-infra/inference-common/index.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/index.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/index.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/index.ts diff --git a/x-pack/packages/ai-infra/inference-common/jest.config.js b/x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js similarity index 72% rename from x-pack/packages/ai-infra/inference-common/jest.config.js rename to x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js index faa0d30b40233..7880fd4d31082 100644 --- a/x-pack/packages/ai-infra/inference-common/jest.config.js +++ b/x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js @@ -7,6 +7,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/packages/ai-infra/inference-common'], + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/ai-infra/inference-common'], }; diff --git a/x-pack/packages/ai-infra/inference-common/kibana.jsonc b/x-pack/platform/packages/shared/ai-infra/inference-common/kibana.jsonc similarity index 100% rename from x-pack/packages/ai-infra/inference-common/kibana.jsonc rename to x-pack/platform/packages/shared/ai-infra/inference-common/kibana.jsonc diff --git a/x-pack/packages/ai-infra/inference-common/package.json b/x-pack/platform/packages/shared/ai-infra/inference-common/package.json similarity index 100% rename from x-pack/packages/ai-infra/inference-common/package.json rename to x-pack/platform/packages/shared/ai-infra/inference-common/package.json diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/bound_api.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/bound_api.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/bound_api.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/bound_api.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/index.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/index.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/index.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/index.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/messages.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/messages.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/tool_schema.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tool_schema.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/tool_schema.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tool_schema.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/errors.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/errors.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/inference_task.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/inference_task.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/inference_task.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/inference_task.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/output/api.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/output/api.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/output/bound_api.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/output/bound_api.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/output/bound_api.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/output/bound_api.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/output/events.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/output/events.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/output/events.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/output/events.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/output/index.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/output/index.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/output/index.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/output/index.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/truncate_list.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/truncate_list.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/truncate_list.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/truncate_list.ts diff --git a/x-pack/packages/ai-infra/inference-common/tsconfig.json b/x-pack/platform/packages/shared/ai-infra/inference-common/tsconfig.json similarity index 81% rename from x-pack/packages/ai-infra/inference-common/tsconfig.json rename to x-pack/platform/packages/shared/ai-infra/inference-common/tsconfig.json index 86d57b8d692f7..af23c916b5d13 100644 --- a/x-pack/packages/ai-infra/inference-common/tsconfig.json +++ b/x-pack/platform/packages/shared/ai-infra/inference-common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/packages/ai-infra/product-doc-common/README.md b/x-pack/platform/packages/shared/ai-infra/product-doc-common/README.md similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/README.md rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/README.md diff --git a/x-pack/packages/ai-infra/product-doc-common/index.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/index.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/index.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/index.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/jest.config.js b/x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js similarity index 72% rename from x-pack/packages/ai-infra/product-doc-common/jest.config.js rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js index e6cae43806c8d..16ca401a20431 100644 --- a/x-pack/packages/ai-infra/product-doc-common/jest.config.js +++ b/x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js @@ -7,6 +7,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/x-pack/packages/ai-infra/product-doc-common'], + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/ai-infra/product-doc-common'], }; diff --git a/x-pack/packages/ai-infra/product-doc-common/kibana.jsonc b/x-pack/platform/packages/shared/ai-infra/product-doc-common/kibana.jsonc similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/kibana.jsonc rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/kibana.jsonc diff --git a/x-pack/packages/ai-infra/product-doc-common/package.json b/x-pack/platform/packages/shared/ai-infra/product-doc-common/package.json similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/package.json rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/package.json diff --git a/x-pack/packages/ai-infra/product-doc-common/src/artifact.test.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.test.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/artifact.test.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.test.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/artifact.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/artifact.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/artifact_content.test.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact_content.test.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/artifact_content.test.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact_content.test.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/artifact_content.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact_content.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/artifact_content.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact_content.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/documents.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/documents.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/indices.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/indices.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/indices.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/indices.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/manifest.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/manifest.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/manifest.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/manifest.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/product.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/product.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/product.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/product.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/tsconfig.json b/x-pack/platform/packages/shared/ai-infra/product-doc-common/tsconfig.json similarity index 79% rename from x-pack/packages/ai-infra/product-doc-common/tsconfig.json rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/tsconfig.json index 0d78dace105e1..63f0b5ff33faa 100644 --- a/x-pack/packages/ai-infra/product-doc-common/tsconfig.json +++ b/x-pack/platform/packages/shared/ai-infra/product-doc-common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/plugins/ai_infra/llm_tasks/README.md b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/README.md similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/README.md rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/README.md diff --git a/x-pack/plugins/ai_infra/llm_tasks/jest.config.js b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js similarity index 64% rename from x-pack/plugins/ai_infra/llm_tasks/jest.config.js rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js index 2a6206d4304b9..dd8bc96de620a 100644 --- a/x-pack/plugins/ai_infra/llm_tasks/jest.config.js +++ b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js @@ -7,12 +7,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/plugins/ai_infra/llm_tasks/server'], + rootDir: '../../../../../..', + roots: ['/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server'], setupFiles: [], collectCoverage: true, collectCoverageFrom: [ - '/x-pack/plugins/ai_infra/llm_tasks/{public,server,common}/**/*.{js,ts,tsx}', + '/x-pack/platform/plugins/shared/ai_infra/llm_tasks/{public,server,common}/**/*.{js,ts,tsx}', ], coverageReporters: ['html'], diff --git a/x-pack/plugins/ai_infra/llm_tasks/kibana.jsonc b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/kibana.jsonc similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/kibana.jsonc rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/kibana.jsonc diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/config.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/config.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/config.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/config.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/index.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/index.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/index.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/plugin.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/plugin.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/plugin.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/plugin.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/index.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/index.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/index.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/index.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/index.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/index.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.test.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.test.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.test.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/summarize_document.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/summarize_document.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/summarize_document.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/summarize_document.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/types.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/types.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/types.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/utils/tokens.test.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/utils/tokens.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/utils/tokens.test.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/utils/tokens.test.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/utils/tokens.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/utils/tokens.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/utils/tokens.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/utils/tokens.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/tsconfig.json b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json similarity index 85% rename from x-pack/plugins/ai_infra/llm_tasks/tsconfig.json rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json index 03b87827d941a..ade5aa0cbb480 100644 --- a/x-pack/plugins/ai_infra/llm_tasks/tsconfig.json +++ b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../../typings/**/*", + "../../../../../../typings/**/*", "common/**/*", "public/**/*", "typings/**/*", diff --git a/x-pack/plugins/ai_infra/product_doc_base/README.md b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/README.md similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/README.md rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/README.md diff --git a/x-pack/plugins/ai_infra/product_doc_base/common/consts.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/consts.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/common/consts.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/consts.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/common/http_api/installation.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/http_api/installation.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/common/http_api/installation.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/http_api/installation.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/common/install_status.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/install_status.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/common/install_status.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/install_status.ts diff --git a/x-pack/plugins/inference/jest.config.js b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js similarity index 51% rename from x-pack/plugins/inference/jest.config.js rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js index 8b20bd72f17b2..9bb3ea87c253e 100644 --- a/x-pack/plugins/inference/jest.config.js +++ b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js @@ -7,16 +7,16 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', + rootDir: '../../../../../..', roots: [ - '/x-pack/plugins/inference/public', - '/x-pack/plugins/inference/server', - '/x-pack/plugins/inference/common', + '/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public', + '/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server', + '/x-pack/platform/plugins/shared/ai_infra/product_doc_base/common', ], setupFiles: [], collectCoverage: true, collectCoverageFrom: [ - '/x-pack/plugins/inference/{public,server,common}/**/*.{js,ts,tsx}', + '/x-pack/platform/plugins/shared/ai_infra/product_doc_base/{public,server,common}/**/*.{js,ts,tsx}', ], coverageReporters: ['html'], diff --git a/x-pack/plugins/ai_infra/product_doc_base/kibana.jsonc b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/kibana.jsonc similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/kibana.jsonc rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/kibana.jsonc diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/plugin.tsx b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/plugin.tsx similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/plugin.tsx rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/plugin.tsx diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/services/installation/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/services/installation/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/services/installation/installation_service.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/installation_service.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/services/installation/installation_service.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/installation_service.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/services/installation/installation_service.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/installation_service.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/services/installation/installation_service.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/installation_service.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/services/installation/types.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/services/installation/types.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/types.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/types.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/types.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/types.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/config.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/config.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/config.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/config.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/plugin.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/plugin.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/plugin.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/plugin.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/plugin.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/plugin.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/plugin.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/routes/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/routes/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/routes/installation.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/installation.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/routes/installation.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/installation.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/saved_objects/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/saved_objects/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/saved_objects/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/saved_objects/product_doc_install.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/saved_objects/product_doc_install.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/saved_objects/product_doc_install.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/saved_objects/product_doc_install.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/service.mock.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/service.mock.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/service.mock.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/service.mock.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/check_license.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/check_license.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/check_license.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/check_license.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/types.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/types.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/types.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/service.mock.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/service.mock.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/service.mock.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/service.mock.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/get_model_install_status.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/get_model_install_status.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/get_model_install_status.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/get_model_install_status.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/install_elser.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/install_elser.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/install_elser.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/install_elser.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/wait_until_model_deployed.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/wait_until_model_deployed.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/wait_until_model_deployed.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/wait_until_model_deployed.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.mocks.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.mocks.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.mocks.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.mocks.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/download.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/download.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/download.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/download.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/semver.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/semver.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/semver.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/semver.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/semver.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/semver.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/semver.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/semver.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/test_data/test_archive_1.zip b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/test_data/test_archive_1.zip similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/test_data/test_archive_1.zip rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/test_data/test_archive_1.zip diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/perform_search.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/perform_search.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/perform_search.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/perform_search.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/search_service.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/search_service.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/search_service.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/search_service.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/search_service.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/search_service.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/search_service.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/search_service.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/types.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/types.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/types.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/map_result.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/map_result.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/map_result.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/map_result.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/map_result.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/map_result.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/map_result.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/map_result.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/tasks/ensure_up_to_date.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/ensure_up_to_date.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/tasks/ensure_up_to_date.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/ensure_up_to_date.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/tasks/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/tasks/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/tasks/install_all.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/install_all.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/tasks/install_all.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/install_all.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/tasks/uninstall_all.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/uninstall_all.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/tasks/uninstall_all.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/uninstall_all.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/tasks/utils.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/utils.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/tasks/utils.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/utils.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/types.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/types.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/types.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/tsconfig.json b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json similarity index 86% rename from x-pack/plugins/ai_infra/product_doc_base/tsconfig.json rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json index 9a2d1969556bf..c8c29b41722dc 100644 --- a/x-pack/plugins/ai_infra/product_doc_base/tsconfig.json +++ b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../../typings/**/*", + "../../../../../../typings/**/*", "common/**/*", "public/**/*", "typings/**/*", diff --git a/x-pack/plugins/inference/README.md b/x-pack/platform/plugins/shared/inference/README.md similarity index 100% rename from x-pack/plugins/inference/README.md rename to x-pack/platform/plugins/shared/inference/README.md diff --git a/x-pack/plugins/inference/common/chat_complete/bind_chat_complete.test.ts b/x-pack/platform/plugins/shared/inference/common/chat_complete/bind_chat_complete.test.ts similarity index 100% rename from x-pack/plugins/inference/common/chat_complete/bind_chat_complete.test.ts rename to x-pack/platform/plugins/shared/inference/common/chat_complete/bind_chat_complete.test.ts diff --git a/x-pack/plugins/inference/common/chat_complete/bind_chat_complete.ts b/x-pack/platform/plugins/shared/inference/common/chat_complete/bind_chat_complete.ts similarity index 100% rename from x-pack/plugins/inference/common/chat_complete/bind_chat_complete.ts rename to x-pack/platform/plugins/shared/inference/common/chat_complete/bind_chat_complete.ts diff --git a/x-pack/plugins/inference/common/chat_complete/index.ts b/x-pack/platform/plugins/shared/inference/common/chat_complete/index.ts similarity index 100% rename from x-pack/plugins/inference/common/chat_complete/index.ts rename to x-pack/platform/plugins/shared/inference/common/chat_complete/index.ts diff --git a/x-pack/plugins/inference/common/connectors.ts b/x-pack/platform/plugins/shared/inference/common/connectors.ts similarity index 100% rename from x-pack/plugins/inference/common/connectors.ts rename to x-pack/platform/plugins/shared/inference/common/connectors.ts diff --git a/x-pack/plugins/inference/common/http_apis.ts b/x-pack/platform/plugins/shared/inference/common/http_apis.ts similarity index 100% rename from x-pack/plugins/inference/common/http_apis.ts rename to x-pack/platform/plugins/shared/inference/common/http_apis.ts diff --git a/x-pack/plugins/inference/common/index.ts b/x-pack/platform/plugins/shared/inference/common/index.ts similarity index 100% rename from x-pack/plugins/inference/common/index.ts rename to x-pack/platform/plugins/shared/inference/common/index.ts diff --git a/x-pack/plugins/inference/common/output/bind_output.test.ts b/x-pack/platform/plugins/shared/inference/common/output/bind_output.test.ts similarity index 100% rename from x-pack/plugins/inference/common/output/bind_output.test.ts rename to x-pack/platform/plugins/shared/inference/common/output/bind_output.test.ts diff --git a/x-pack/plugins/inference/common/output/bind_output.ts b/x-pack/platform/plugins/shared/inference/common/output/bind_output.ts similarity index 100% rename from x-pack/plugins/inference/common/output/bind_output.ts rename to x-pack/platform/plugins/shared/inference/common/output/bind_output.ts diff --git a/x-pack/plugins/inference/common/output/create_output_api.test.ts b/x-pack/platform/plugins/shared/inference/common/output/create_output_api.test.ts similarity index 100% rename from x-pack/plugins/inference/common/output/create_output_api.test.ts rename to x-pack/platform/plugins/shared/inference/common/output/create_output_api.test.ts diff --git a/x-pack/plugins/inference/common/output/create_output_api.ts b/x-pack/platform/plugins/shared/inference/common/output/create_output_api.ts similarity index 100% rename from x-pack/plugins/inference/common/output/create_output_api.ts rename to x-pack/platform/plugins/shared/inference/common/output/create_output_api.ts diff --git a/x-pack/plugins/inference/common/output/index.ts b/x-pack/platform/plugins/shared/inference/common/output/index.ts similarity index 100% rename from x-pack/plugins/inference/common/output/index.ts rename to x-pack/platform/plugins/shared/inference/common/output/index.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/constants.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/constants.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/constants.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/constants.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.test.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.test.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.test.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.test.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_common_esql_mistakes.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/correct_query_with_actions.test.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_query_with_actions.test.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/correct_query_with_actions.test.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_query_with_actions.test.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/correct_query_with_actions.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_query_with_actions.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/correct_query_with_actions.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_query_with_actions.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/get_errors_with_commands.test.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/get_errors_with_commands.test.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/get_errors_with_commands.test.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/get_errors_with_commands.test.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/get_errors_with_commands.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/get_errors_with_commands.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/get_errors_with_commands.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/get_errors_with_commands.ts diff --git a/x-pack/plugins/inference/common/utils/ensure_multi_turn.ts b/x-pack/platform/plugins/shared/inference/common/utils/ensure_multi_turn.ts similarity index 100% rename from x-pack/plugins/inference/common/utils/ensure_multi_turn.ts rename to x-pack/platform/plugins/shared/inference/common/utils/ensure_multi_turn.ts diff --git a/x-pack/plugins/inference/common/utils/generate_fake_tool_call_id.ts b/x-pack/platform/plugins/shared/inference/common/utils/generate_fake_tool_call_id.ts similarity index 100% rename from x-pack/plugins/inference/common/utils/generate_fake_tool_call_id.ts rename to x-pack/platform/plugins/shared/inference/common/utils/generate_fake_tool_call_id.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/jest.config.js b/x-pack/platform/plugins/shared/inference/jest.config.js similarity index 61% rename from x-pack/plugins/ai_infra/product_doc_base/jest.config.js rename to x-pack/platform/plugins/shared/inference/jest.config.js index fc06be251a6f7..f10ad8ca93822 100644 --- a/x-pack/plugins/ai_infra/product_doc_base/jest.config.js +++ b/x-pack/platform/plugins/shared/inference/jest.config.js @@ -7,16 +7,16 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', + rootDir: '../../../../..', roots: [ - '/x-pack/plugins/ai_infra/product_doc_base/public', - '/x-pack/plugins/ai_infra/product_doc_base/server', - '/x-pack/plugins/ai_infra/product_doc_base/common', + '/x-pack/platform/plugins/shared/inference/public', + '/x-pack/platform/plugins/shared/inference/server', + '/x-pack/platform/plugins/shared/inference/common', ], setupFiles: [], collectCoverage: true, collectCoverageFrom: [ - '/x-pack/plugins/ai_infra/product_doc_base/{public,server,common}/**/*.{js,ts,tsx}', + '/x-pack/platform/plugins/shared/inference/{public,server,common}/**/*.{js,ts,tsx}', ], coverageReporters: ['html'], diff --git a/x-pack/plugins/inference/kibana.jsonc b/x-pack/platform/plugins/shared/inference/kibana.jsonc similarity index 100% rename from x-pack/plugins/inference/kibana.jsonc rename to x-pack/platform/plugins/shared/inference/kibana.jsonc diff --git a/x-pack/plugins/inference/public/chat_complete.test.ts b/x-pack/platform/plugins/shared/inference/public/chat_complete.test.ts similarity index 100% rename from x-pack/plugins/inference/public/chat_complete.test.ts rename to x-pack/platform/plugins/shared/inference/public/chat_complete.test.ts diff --git a/x-pack/plugins/inference/public/chat_complete.ts b/x-pack/platform/plugins/shared/inference/public/chat_complete.ts similarity index 100% rename from x-pack/plugins/inference/public/chat_complete.ts rename to x-pack/platform/plugins/shared/inference/public/chat_complete.ts diff --git a/x-pack/plugins/inference/public/index.ts b/x-pack/platform/plugins/shared/inference/public/index.ts similarity index 100% rename from x-pack/plugins/inference/public/index.ts rename to x-pack/platform/plugins/shared/inference/public/index.ts diff --git a/x-pack/plugins/inference/public/plugin.tsx b/x-pack/platform/plugins/shared/inference/public/plugin.tsx similarity index 100% rename from x-pack/plugins/inference/public/plugin.tsx rename to x-pack/platform/plugins/shared/inference/public/plugin.tsx diff --git a/x-pack/plugins/inference/public/types.ts b/x-pack/platform/plugins/shared/inference/public/types.ts similarity index 100% rename from x-pack/plugins/inference/public/types.ts rename to x-pack/platform/plugins/shared/inference/public/types.ts diff --git a/x-pack/plugins/inference/public/util/create_observable_from_http_response.ts b/x-pack/platform/plugins/shared/inference/public/util/create_observable_from_http_response.ts similarity index 100% rename from x-pack/plugins/inference/public/util/create_observable_from_http_response.ts rename to x-pack/platform/plugins/shared/inference/public/util/create_observable_from_http_response.ts diff --git a/x-pack/plugins/inference/public/util/http_response_into_observable.test.ts b/x-pack/platform/plugins/shared/inference/public/util/http_response_into_observable.test.ts similarity index 100% rename from x-pack/plugins/inference/public/util/http_response_into_observable.test.ts rename to x-pack/platform/plugins/shared/inference/public/util/http_response_into_observable.test.ts diff --git a/x-pack/plugins/inference/public/util/http_response_into_observable.ts b/x-pack/platform/plugins/shared/inference/public/util/http_response_into_observable.ts similarity index 100% rename from x-pack/plugins/inference/public/util/http_response_into_observable.ts rename to x-pack/platform/plugins/shared/inference/public/util/http_response_into_observable.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/.eslintrc.json b/x-pack/platform/plugins/shared/inference/scripts/evaluation/.eslintrc.json similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/.eslintrc.json rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/.eslintrc.json diff --git a/x-pack/plugins/inference/scripts/evaluation/README.md b/x-pack/platform/plugins/shared/inference/scripts/evaluation/README.md similarity index 94% rename from x-pack/plugins/inference/scripts/evaluation/README.md rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/README.md index 39ba3426ba0d4..cdcb87513f14f 100644 --- a/x-pack/plugins/inference/scripts/evaluation/README.md +++ b/x-pack/platform/plugins/shared/inference/scripts/evaluation/README.md @@ -14,7 +14,7 @@ This tool is developed for the teams working on anything related to inference. I Run the tool using: -`$ node x-pack/plugins/inference/scripts/evaluation/index.js` +`$ node x-pack/platform/plugins/shared/inference/scripts/evaluation/index.js` This will evaluate all existing scenarios, and write the evaluation results to the terminal. diff --git a/x-pack/plugins/inference/scripts/evaluation/cli.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/cli.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/cli.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/cli.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/evaluation.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/evaluation.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/evaluation.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/evaluation.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/evaluation_client.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/evaluation_client.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/evaluation_client.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/evaluation_client.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/index.js b/x-pack/platform/plugins/shared/inference/scripts/evaluation/index.js similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/index.js rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/index.js diff --git a/x-pack/plugins/inference/scripts/evaluation/scenarios/esql/index.spec.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/scenarios/esql/index.spec.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/scenarios/esql/index.spec.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/scenarios/esql/index.spec.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/services/index.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/services/index.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/services/index.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/services/index.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/table_renderer.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/table_renderer.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/table_renderer.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/table_renderer.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/types.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/types.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/types.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/types.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/README.md b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/README.md similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/README.md rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/README.md diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/extract_doc_entries.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/extract_doc_entries.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/extract_doc_entries.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/extract_doc_entries.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/generate_doc.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/generate_doc.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/generate_doc.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/generate_doc.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/index.js b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/index.js similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/index.js rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/index.js diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/load_esql_docs.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/load_esql_docs.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/load_esql_docs.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/load_esql_docs.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/prompts/convert_to_markdown.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/convert_to_markdown.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/prompts/convert_to_markdown.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/convert_to_markdown.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/prompts/create_documentation_page.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/create_documentation_page.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/prompts/create_documentation_page.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/create_documentation_page.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/prompts/index.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/index.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/prompts/index.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/index.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/prompts/rewrite_function_page.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/rewrite_function_page.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/prompts/rewrite_function_page.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/rewrite_function_page.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/sync_built_docs_repo.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/sync_built_docs_repo.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/sync_built_docs_repo.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/sync_built_docs_repo.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/utils/output_executor.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/utils/output_executor.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/utils/output_executor.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/utils/output_executor.ts diff --git a/x-pack/plugins/inference/scripts/util/cli_options.ts b/x-pack/platform/plugins/shared/inference/scripts/util/cli_options.ts similarity index 100% rename from x-pack/plugins/inference/scripts/util/cli_options.ts rename to x-pack/platform/plugins/shared/inference/scripts/util/cli_options.ts diff --git a/x-pack/plugins/inference/scripts/util/get_service_urls.ts b/x-pack/platform/plugins/shared/inference/scripts/util/get_service_urls.ts similarity index 100% rename from x-pack/plugins/inference/scripts/util/get_service_urls.ts rename to x-pack/platform/plugins/shared/inference/scripts/util/get_service_urls.ts diff --git a/x-pack/plugins/inference/scripts/util/kibana_client.ts b/x-pack/platform/plugins/shared/inference/scripts/util/kibana_client.ts similarity index 100% rename from x-pack/plugins/inference/scripts/util/kibana_client.ts rename to x-pack/platform/plugins/shared/inference/scripts/util/kibana_client.ts diff --git a/x-pack/plugins/inference/scripts/util/read_kibana_config.ts b/x-pack/platform/plugins/shared/inference/scripts/util/read_kibana_config.ts similarity index 98% rename from x-pack/plugins/inference/scripts/util/read_kibana_config.ts rename to x-pack/platform/plugins/shared/inference/scripts/util/read_kibana_config.ts index 7d539e881bee8..fca94a8d57d05 100644 --- a/x-pack/plugins/inference/scripts/util/read_kibana_config.ts +++ b/x-pack/platform/plugins/shared/inference/scripts/util/read_kibana_config.ts @@ -13,7 +13,7 @@ import { identity, pickBy } from 'lodash'; export type KibanaConfig = ReturnType; export const readKibanaConfig = () => { - const kibanaConfigDir = path.join(__filename, '../../../../../../config'); + const kibanaConfigDir = path.join(__filename, '../../../../../../../config'); const kibanaDevConfig = path.join(kibanaConfigDir, 'kibana.dev.yml'); const kibanaConfig = path.join(kibanaConfigDir, 'kibana.yml'); diff --git a/x-pack/plugins/inference/scripts/util/select_connector.ts b/x-pack/platform/plugins/shared/inference/scripts/util/select_connector.ts similarity index 100% rename from x-pack/plugins/inference/scripts/util/select_connector.ts rename to x-pack/platform/plugins/shared/inference/scripts/util/select_connector.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/prompts.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/prompts.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/prompts.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/prompts.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_utils.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_utils.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_utils.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_utils.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_utils.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_utils.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_utils.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_utils.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/types.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/types.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/types.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/types.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.mocks.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.mocks.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.mocks.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.mocks.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/process_vertex_stream.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/process_vertex_stream.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/process_vertex_stream.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/process_vertex_stream.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/process_vertex_stream.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/process_vertex_stream.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/process_vertex_stream.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/process_vertex_stream.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/types.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/types.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/types.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/types.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/get_inference_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/get_inference_adapter.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/get_inference_adapter.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/get_inference_adapter.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/get_inference_adapter.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/get_inference_adapter.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/get_inference_adapter.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/get_inference_adapter.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/openai/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/openai/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/openai/openai_adapter.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/openai/openai_adapter.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.ts diff --git a/x-pack/plugins/inference/server/chat_complete/api.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/api.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/api.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/api.ts diff --git a/x-pack/plugins/inference/server/chat_complete/errors.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/errors.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/errors.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/errors.ts diff --git a/x-pack/plugins/inference/server/chat_complete/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/simulated_function_calling/constants.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/constants.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/simulated_function_calling/constants.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/constants.ts diff --git a/x-pack/plugins/inference/server/chat_complete/simulated_function_calling/get_system_instructions.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/get_system_instructions.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/simulated_function_calling/get_system_instructions.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/get_system_instructions.ts diff --git a/x-pack/plugins/inference/server/chat_complete/simulated_function_calling/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/simulated_function_calling/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/simulated_function_calling/parse_inline_function_calls.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/parse_inline_function_calls.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/simulated_function_calling/parse_inline_function_calls.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/parse_inline_function_calls.ts diff --git a/x-pack/plugins/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts diff --git a/x-pack/plugins/inference/server/chat_complete/types.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/types.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/types.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/types.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/chunks_into_message.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/chunks_into_message.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/chunks_into_message.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/chunks_into_message.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/chunks_into_message.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/chunks_into_message.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/chunks_into_message.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/chunks_into_message.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/inference_executor.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/inference_executor.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/inference_executor.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/inference_executor.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/inference_executor.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/inference_executor.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/inference_executor.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/inference_executor.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/stream_to_response.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/stream_to_response.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/stream_to_response.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/stream_to_response.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/stream_to_response.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/stream_to_response.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/stream_to_response.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/stream_to_response.ts diff --git a/x-pack/plugins/inference/server/config.ts b/x-pack/platform/plugins/shared/inference/server/config.ts similarity index 100% rename from x-pack/plugins/inference/server/config.ts rename to x-pack/platform/plugins/shared/inference/server/config.ts diff --git a/x-pack/plugins/inference/server/index.ts b/x-pack/platform/plugins/shared/inference/server/index.ts similarity index 100% rename from x-pack/plugins/inference/server/index.ts rename to x-pack/platform/plugins/shared/inference/server/index.ts diff --git a/x-pack/plugins/inference/server/inference_client/bind_client.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/bind_client.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/bind_client.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/bind_client.ts diff --git a/x-pack/plugins/inference/server/inference_client/create_client.test.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/create_client.test.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/create_client.test.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/create_client.test.ts diff --git a/x-pack/plugins/inference/server/inference_client/create_client.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/create_client.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/create_client.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/create_client.ts diff --git a/x-pack/plugins/inference/server/inference_client/index.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/index.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/index.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/index.ts diff --git a/x-pack/plugins/inference/server/inference_client/inference_client.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/inference_client.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/inference_client.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/inference_client.ts diff --git a/x-pack/plugins/inference/server/inference_client/types.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/types.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/types.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/types.ts diff --git a/x-pack/plugins/inference/server/plugin.ts b/x-pack/platform/plugins/shared/inference/server/plugin.ts similarity index 100% rename from x-pack/plugins/inference/server/plugin.ts rename to x-pack/platform/plugins/shared/inference/server/plugin.ts diff --git a/x-pack/plugins/inference/server/routes/chat_complete.ts b/x-pack/platform/plugins/shared/inference/server/routes/chat_complete.ts similarity index 100% rename from x-pack/plugins/inference/server/routes/chat_complete.ts rename to x-pack/platform/plugins/shared/inference/server/routes/chat_complete.ts diff --git a/x-pack/plugins/inference/server/routes/connectors.ts b/x-pack/platform/plugins/shared/inference/server/routes/connectors.ts similarity index 100% rename from x-pack/plugins/inference/server/routes/connectors.ts rename to x-pack/platform/plugins/shared/inference/server/routes/connectors.ts diff --git a/x-pack/plugins/inference/server/routes/index.ts b/x-pack/platform/plugins/shared/inference/server/routes/index.ts similarity index 100% rename from x-pack/plugins/inference/server/routes/index.ts rename to x-pack/platform/plugins/shared/inference/server/routes/index.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/actions/generate_esql.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/generate_esql.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/actions/generate_esql.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/generate_esql.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/actions/index.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/index.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/actions/index.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/index.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/actions/request_documentation.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/request_documentation.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/actions/request_documentation.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/request_documentation.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/actions/shared.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/shared.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/actions/shared.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/shared.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/aliases.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/aliases.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/aliases.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/aliases.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/esql_doc_base.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/esql_doc_base.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/esql_doc_base.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/esql_doc_base.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/index.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/index.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/index.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/index.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/load_data.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/load_data.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/load_data.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/load_data.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/suggestions.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/suggestions.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/suggestions.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/suggestions.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/types.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/types.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/types.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/types.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-abs.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-abs.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-abs.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-abs.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-acos.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-acos.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-acos.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-acos.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-asin.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-asin.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-asin.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-asin.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-atan.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-atan.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-atan.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-atan.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-atan2.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-atan2.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-atan2.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-atan2.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-avg.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-avg.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-avg.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-avg.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-bucket.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-bucket.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-bucket.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-bucket.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-case.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-case.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-case.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-case.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cbrt.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cbrt.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cbrt.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cbrt.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ceil.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ceil.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ceil.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ceil.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cidr_match.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cidr_match.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cidr_match.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cidr_match.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-coalesce.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-coalesce.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-coalesce.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-coalesce.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-concat.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-concat.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-concat.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-concat.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cos.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cos.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cos.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cos.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cosh.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cosh.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cosh.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cosh.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-count.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-count.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-count.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-count.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-count_distinct.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-count_distinct.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-count_distinct.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-count_distinct.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_diff.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_diff.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_diff.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_diff.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_extract.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_extract.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_extract.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_extract.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_format.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_format.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_format.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_format.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_parse.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_parse.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_parse.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_parse.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_trunc.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_trunc.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_trunc.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_trunc.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-dissect.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-dissect.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-dissect.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-dissect.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-drop.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-drop.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-drop.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-drop.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-e.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-e.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-e.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-e.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ends_with.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ends_with.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ends_with.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ends_with.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-enrich.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-enrich.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-enrich.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-enrich.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-eval.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-eval.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-eval.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-eval.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-exp.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-exp.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-exp.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-exp.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-floor.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-floor.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-floor.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-floor.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-from.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-from.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-from.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-from.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-from_base64.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-from_base64.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-from_base64.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-from_base64.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-greatest.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-greatest.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-greatest.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-greatest.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-grok.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-grok.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-grok.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-grok.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ip_prefix.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ip_prefix.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ip_prefix.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ip_prefix.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-keep.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-keep.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-keep.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-keep.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-least.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-least.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-least.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-least.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-left.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-left.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-left.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-left.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-length.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-length.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-length.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-length.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-limit.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-limit.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-limit.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-limit.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-locate.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-locate.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-locate.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-locate.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-log.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-log.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-log.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-log.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-log10.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-log10.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-log10.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-log10.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-lookup.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-lookup.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-lookup.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-lookup.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ltrim.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ltrim.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ltrim.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ltrim.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-max.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-max.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-max.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-max.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-median.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-median.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-median.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-median.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-median_absolute_deviation.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-median_absolute_deviation.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-median_absolute_deviation.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-median_absolute_deviation.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-min.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-min.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-min.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-min.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_append.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_append.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_append.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_append.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_avg.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_avg.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_avg.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_avg.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_concat.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_concat.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_concat.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_concat.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_count.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_count.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_count.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_count.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_dedupe.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_dedupe.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_dedupe.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_dedupe.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_expand.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_expand.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_expand.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_expand.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_first.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_first.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_first.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_first.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_last.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_last.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_last.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_last.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_max.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_max.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_max.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_max.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_median.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_median.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_median.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_median.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_min.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_min.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_min.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_min.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_pseries_weighted_sum.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_pseries_weighted_sum.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_pseries_weighted_sum.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_pseries_weighted_sum.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_slice.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_slice.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_slice.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_slice.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sort.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sort.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sort.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sort.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sum.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sum.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sum.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sum.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_zip.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_zip.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_zip.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_zip.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-now.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-now.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-now.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-now.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-operators.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-operators.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-operators.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-operators.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-overview.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-overview.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-overview.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-overview.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-percentile.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-percentile.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-percentile.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-percentile.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-pi.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-pi.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-pi.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-pi.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-pow.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-pow.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-pow.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-pow.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-rename.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-rename.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-rename.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-rename.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-repeat.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-repeat.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-repeat.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-repeat.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-replace.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-replace.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-replace.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-replace.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-right.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-right.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-right.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-right.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-round.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-round.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-round.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-round.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-row.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-row.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-row.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-row.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-rtrim.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-rtrim.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-rtrim.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-rtrim.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-show.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-show.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-show.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-show.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-signum.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-signum.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-signum.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-signum.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sin.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sin.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sin.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sin.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sinh.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sinh.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sinh.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sinh.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sort.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sort.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sort.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sort.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-split.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-split.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-split.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-split.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sqrt.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sqrt.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sqrt.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sqrt.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_centroid_agg.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_centroid_agg.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_centroid_agg.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_centroid_agg.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_contains.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_contains.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_contains.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_contains.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_disjoint.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_disjoint.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_disjoint.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_disjoint.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_distance.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_distance.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_distance.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_distance.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_intersects.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_intersects.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_intersects.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_intersects.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_within.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_within.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_within.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_within.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_x.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_x.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_x.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_x.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_y.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_y.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_y.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_y.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-starts_with.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-starts_with.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-starts_with.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-starts_with.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-stats.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-stats.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-stats.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-stats.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-substring.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-substring.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-substring.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-substring.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sum.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sum.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sum.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sum.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-syntax.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-syntax.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-syntax.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-syntax.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tan.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tan.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tan.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tan.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tanh.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tanh.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tanh.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tanh.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tau.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tau.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tau.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tau.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_base64.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_base64.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_base64.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_base64.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_boolean.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_boolean.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_boolean.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_boolean.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianpoint.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianpoint.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianpoint.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianpoint.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianshape.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianshape.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianshape.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianshape.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_datetime.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_datetime.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_datetime.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_datetime.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_degrees.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_degrees.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_degrees.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_degrees.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_double.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_double.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_double.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_double.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geopoint.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geopoint.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geopoint.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geopoint.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geoshape.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geoshape.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geoshape.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geoshape.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_integer.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_integer.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_integer.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_integer.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_ip.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_ip.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_ip.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_ip.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_long.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_long.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_long.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_long.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_lower.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_lower.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_lower.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_lower.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_radians.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_radians.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_radians.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_radians.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_string.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_string.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_string.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_string.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_unsigned_long.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_unsigned_long.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_unsigned_long.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_unsigned_long.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_upper.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_upper.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_upper.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_upper.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_version.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_version.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_version.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_version.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-top.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-top.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-top.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-top.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-trim.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-trim.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-trim.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-trim.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-values.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-values.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-values.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-values.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-weighted_avg.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-weighted_avg.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-weighted_avg.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-weighted_avg.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-where.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-where.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-where.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-where.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/index.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/index.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/index.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/index.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/system_message.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/system_message.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/system_message.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/system_message.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/task.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/task.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/task.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/task.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/types.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/types.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/types.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/types.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/validate_esql_query.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/validate_esql_query.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/validate_esql_query.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/validate_esql_query.ts diff --git a/x-pack/plugins/inference/server/test_utils/chat_complete_events.ts b/x-pack/platform/plugins/shared/inference/server/test_utils/chat_complete_events.ts similarity index 100% rename from x-pack/plugins/inference/server/test_utils/chat_complete_events.ts rename to x-pack/platform/plugins/shared/inference/server/test_utils/chat_complete_events.ts diff --git a/x-pack/plugins/inference/server/types.ts b/x-pack/platform/plugins/shared/inference/server/types.ts similarity index 100% rename from x-pack/plugins/inference/server/types.ts rename to x-pack/platform/plugins/shared/inference/server/types.ts diff --git a/x-pack/plugins/inference/server/util/event_source_stream_into_observable.test.ts b/x-pack/platform/plugins/shared/inference/server/util/event_source_stream_into_observable.test.ts similarity index 100% rename from x-pack/plugins/inference/server/util/event_source_stream_into_observable.test.ts rename to x-pack/platform/plugins/shared/inference/server/util/event_source_stream_into_observable.test.ts diff --git a/x-pack/plugins/inference/server/util/event_source_stream_into_observable.ts b/x-pack/platform/plugins/shared/inference/server/util/event_source_stream_into_observable.ts similarity index 100% rename from x-pack/plugins/inference/server/util/event_source_stream_into_observable.ts rename to x-pack/platform/plugins/shared/inference/server/util/event_source_stream_into_observable.ts diff --git a/x-pack/plugins/inference/server/util/get_connector_by_id.test.ts b/x-pack/platform/plugins/shared/inference/server/util/get_connector_by_id.test.ts similarity index 100% rename from x-pack/plugins/inference/server/util/get_connector_by_id.test.ts rename to x-pack/platform/plugins/shared/inference/server/util/get_connector_by_id.test.ts diff --git a/x-pack/plugins/inference/server/util/get_connector_by_id.ts b/x-pack/platform/plugins/shared/inference/server/util/get_connector_by_id.ts similarity index 100% rename from x-pack/plugins/inference/server/util/get_connector_by_id.ts rename to x-pack/platform/plugins/shared/inference/server/util/get_connector_by_id.ts diff --git a/x-pack/plugins/inference/server/util/observable_into_event_source_stream.test.ts b/x-pack/platform/plugins/shared/inference/server/util/observable_into_event_source_stream.test.ts similarity index 100% rename from x-pack/plugins/inference/server/util/observable_into_event_source_stream.test.ts rename to x-pack/platform/plugins/shared/inference/server/util/observable_into_event_source_stream.test.ts diff --git a/x-pack/plugins/inference/server/util/observable_into_event_source_stream.ts b/x-pack/platform/plugins/shared/inference/server/util/observable_into_event_source_stream.ts similarity index 100% rename from x-pack/plugins/inference/server/util/observable_into_event_source_stream.ts rename to x-pack/platform/plugins/shared/inference/server/util/observable_into_event_source_stream.ts diff --git a/x-pack/plugins/inference/server/util/validate_tool_calls.test.ts b/x-pack/platform/plugins/shared/inference/server/util/validate_tool_calls.test.ts similarity index 100% rename from x-pack/plugins/inference/server/util/validate_tool_calls.test.ts rename to x-pack/platform/plugins/shared/inference/server/util/validate_tool_calls.test.ts diff --git a/x-pack/plugins/inference/server/util/validate_tool_calls.ts b/x-pack/platform/plugins/shared/inference/server/util/validate_tool_calls.ts similarity index 100% rename from x-pack/plugins/inference/server/util/validate_tool_calls.ts rename to x-pack/platform/plugins/shared/inference/server/util/validate_tool_calls.ts diff --git a/x-pack/plugins/inference/tsconfig.json b/x-pack/platform/plugins/shared/inference/tsconfig.json similarity index 89% rename from x-pack/plugins/inference/tsconfig.json rename to x-pack/platform/plugins/shared/inference/tsconfig.json index 92327007829a9..1e012239f06cf 100644 --- a/x-pack/plugins/inference/tsconfig.json +++ b/x-pack/platform/plugins/shared/inference/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../typings/**/*", + "../../../../../typings/**/*", "common/**/*", "public/**/*", "typings/**/*", diff --git a/yarn.lock b/yarn.lock index 9a1a2cbfd544d..c2a0c041a0e1d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5920,11 +5920,11 @@ version "0.0.0" uid "" -"@kbn/inference-common@link:x-pack/packages/ai-infra/inference-common": +"@kbn/inference-common@link:x-pack/platform/packages/shared/ai-infra/inference-common": version "0.0.0" uid "" -"@kbn/inference-plugin@link:x-pack/plugins/inference": +"@kbn/inference-plugin@link:x-pack/platform/plugins/shared/inference": version "0.0.0" uid "" @@ -6120,7 +6120,7 @@ version "0.0.0" uid "" -"@kbn/llm-tasks-plugin@link:x-pack/plugins/ai_infra/llm_tasks": +"@kbn/llm-tasks-plugin@link:x-pack/platform/plugins/shared/ai_infra/llm_tasks": version "0.0.0" uid "" @@ -6608,11 +6608,11 @@ version "0.0.0" uid "" -"@kbn/product-doc-base-plugin@link:x-pack/plugins/ai_infra/product_doc_base": +"@kbn/product-doc-base-plugin@link:x-pack/platform/plugins/shared/ai_infra/product_doc_base": version "0.0.0" uid "" -"@kbn/product-doc-common@link:x-pack/packages/ai-infra/product-doc-common": +"@kbn/product-doc-common@link:x-pack/platform/packages/shared/ai-infra/product-doc-common": version "0.0.0" uid ""