Skip to content

Commit 07ffab4

Browse files
kibanamachineSrdjanLLviduni94
authored
[9.0] [Obs AI Assistant] Fix response handling of get_apm_downstream_dependencies tool call (#226601) (#226980)
# Backport This will backport the following commits from `main` to `9.0`: - [[Obs AI Assistant] Fix response handling of get_apm_downstream_dependencies tool call (#226601)](#226601) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Srdjan Lulic","email":"srdjan.lulic@elastic.co"},"sourceCommit":{"committedDate":"2025-07-08T10:52:42Z","message":"[Obs AI Assistant] Fix response handling of get_apm_downstream_dependencies tool call (#226601)\n\n## Summary\n\nFix response handling of `get_apm_downstream_dependencies` tool call by\nwrapping the dependency list as a field of a JSON object instead.\n\nCloses: https://github.com/elastic/kibana/issues/226594\n\n### Testing:\n- Ran with the evaluation framework for the affected Gemini and Claude\nmodels (and confirmed OpenAI connector did not regress).\n\n```bash\n┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐\n│ What are the downstream dependencies of the ai-assistant-service-front service (observe just the last hour)? │\n├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ http://localhost:5601/cgx/s/gemini-2/app/observabilityAIAssistant/conversations/43d7a31b-a042-44d4-974f-d0bbddfd431b │\n├──────────────────────────────────────────────────────────────┬────────┬──────────────────────────────────────────────────────────────┤\n│ Criterion │ Result │ Reasoning │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Uses the get_apm_downstream_dependencies function with the │ 1 │ The assistant correctly called the │\n│ `service.name` parameter being \"ai-assistant-service-front\" │ │ `get_apm_downstream_dependencies` function with the │\n│ │ │ `serviceName` parameter set to 'ai-assistant-service-front'. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Returns the results to the user (\"ai-assistant-service-back\" │ 1 │ The assistant correctly identified and reported the │\n│ is the only dependency) │ │ downstream dependency, 'ai-assistant-service-back', to the │\n│ │ │ user. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ The conversation did not encounter any errors │ 1 │ No errors occurred │\n└──────────────────────────────────────────────────────────────┴────────┴──────────────────────────────────────────────────────────────┘\n\n ✔ service dependencies (12562ms)\n info Cleaning data streams: \"traces-apm*,metrics-apm*,logs-apm*,metrics-*.otel*,traces-*.otel*,logs-*.otel*\"\n\n\n 1 passing (22s)\n\n-------------------------------------------\nModel gemini-25-flash scored 3 out of 3\n-------------------------------------------\n-------------------------------------------\nModel gemini-25-flash Scores per Category\n-------------------------\nCategory: APM - Scored 3 out of 3\n-------------------------------------------\n```\n\nClaude:\n```\n┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐\n│ What are the downstream dependencies of the ai-assistant-service-front service (observe just the last hour)? │\n├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ http://localhost:5601/cgx/s/gemini-2/app/observabilityAIAssistant/conversations/652674d6-ba60-44b6-9aea-db40c8a69886 │\n├──────────────────────────────────────────────────────────────┬────────┬──────────────────────────────────────────────────────────────┤\n│ Criterion │ Result │ Reasoning │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Uses the get_apm_downstream_dependencies function with the │ 1 │ The assistant correctly identified the user's intent and │\n│ `service.name` parameter being \"ai-assistant-service-front\" │ │ used the `get_apm_downstream_dependencies` function with the │\n│ │ │ correct `serviceName` parameter, │\n│ │ │ 'ai-assistant-service-front'. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Returns the results to the user (\"ai-assistant-service-back\" │ 1 │ The assistant successfully retrieved the downstream │\n│ is the only dependency) │ │ dependency and accurately reported to the user that │\n│ │ │ 'ai-assistant-service-back' is the sole dependency, │\n│ │ │ presenting the information in a clear and understandable │\n│ │ │ format. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ The conversation did not encounter any errors │ 1 │ No errors occurred │\n└──────────────────────────────────────────────────────────────┴────────┴──────────────────────────────────────────────────────────────┘\n\n ✔ service dependencies (18709ms)\n info Cleaning data streams: \"traces-apm*,metrics-apm*,logs-apm*,metrics-*.otel*,traces-*.otel*,logs-*.otel*\"\n\n\n 1 passing (28s)\n\n-------------------------------------------\nModel bedrock-claude-3_7 scored 3 out of 3\n-------------------------------------------\n-------------------------------------------\nModel bedrock-claude-3_7 Scores per Category\n-------------------------\nCategory: APM - Scored 3 out of 3\n-------------------------------------------\n```\n\nOpenAI:\n\n```bash\n┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐\n│ What are the downstream dependencies of the ai-assistant-service-front service (observe just the last hour)? │\n├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ http://localhost:5601/cgx/s/gemini-2/app/observabilityAIAssistant/conversations/c54dfaa7-dcad-486f-ad29-ed0267940a26 │\n├──────────────────────────────────────────────────────────────┬────────┬──────────────────────────────────────────────────────────────┤\n│ Criterion │ Result │ Reasoning │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Uses the get_apm_downstream_dependencies function with the │ 1 │ The assistant correctly called the │\n│ `service.name` parameter being \"ai-assistant-service-front\" │ │ `get_apm_downstream_dependencies` function with the │\n│ │ │ `service.name` parameter set to │\n│ │ │ 'ai-assistant-service-front'. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Returns the results to the user (\"ai-assistant-service-back\" │ 1 │ The assistant correctly identified and returned │\n│ is the only dependency) │ │ 'ai-assistant-service-back' as the only downstream │\n│ │ │ dependency to the user. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ The conversation did not encounter any errors │ 1 │ No errors occurred │\n└──────────────────────────────────────────────────────────────┴────────┴──────────────────────────────────────────────────────────────┘\n\n ✔ service dependencies (10858ms)\n info Cleaning data streams: \"traces-apm*,metrics-apm*,logs-apm*,metrics-*.otel*,traces-*.otel*,logs-*.otel*\"\n\n\n 1 passing (18s)\n\n-------------------------------------------\nModel azure-gpt4_1 scored 3 out of 3\n-------------------------------------------\n-------------------------------------------\nModel azure-gpt4_1 Scores per Category\n-------------------------\nCategory: APM - Scored 3 out of 3\n-------------------------------------------\n```\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.\n\nCo-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>","sha":"ae6a3e76761d89fd93336153669588ba0f4443f4","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Obs AI Assistant","ci:project-deploy-observability","Team:obs-ux-infra_services","backport:version","v9.1.0","v8.19.0","v9.2.0","v8.18.4","v9.0.4"],"title":"[Obs AI Assistant] Fix response handling of get_apm_dependencies tool call","number":226601,"url":"https://github.com/elastic/kibana/pull/226601","mergeCommit":{"message":"[Obs AI Assistant] Fix response handling of get_apm_downstream_dependencies tool call (#226601)\n\n## Summary\n\nFix response handling of `get_apm_downstream_dependencies` tool call by\nwrapping the dependency list as a field of a JSON object instead.\n\nCloses: https://github.com/elastic/kibana/issues/226594\n\n### Testing:\n- Ran with the evaluation framework for the affected Gemini and Claude\nmodels (and confirmed OpenAI connector did not regress).\n\n```bash\n┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐\n│ What are the downstream dependencies of the ai-assistant-service-front service (observe just the last hour)? │\n├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ http://localhost:5601/cgx/s/gemini-2/app/observabilityAIAssistant/conversations/43d7a31b-a042-44d4-974f-d0bbddfd431b │\n├──────────────────────────────────────────────────────────────┬────────┬──────────────────────────────────────────────────────────────┤\n│ Criterion │ Result │ Reasoning │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Uses the get_apm_downstream_dependencies function with the │ 1 │ The assistant correctly called the │\n│ `service.name` parameter being \"ai-assistant-service-front\" │ │ `get_apm_downstream_dependencies` function with the │\n│ │ │ `serviceName` parameter set to 'ai-assistant-service-front'. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Returns the results to the user (\"ai-assistant-service-back\" │ 1 │ The assistant correctly identified and reported the │\n│ is the only dependency) │ │ downstream dependency, 'ai-assistant-service-back', to the │\n│ │ │ user. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ The conversation did not encounter any errors │ 1 │ No errors occurred │\n└──────────────────────────────────────────────────────────────┴────────┴──────────────────────────────────────────────────────────────┘\n\n ✔ service dependencies (12562ms)\n info Cleaning data streams: \"traces-apm*,metrics-apm*,logs-apm*,metrics-*.otel*,traces-*.otel*,logs-*.otel*\"\n\n\n 1 passing (22s)\n\n-------------------------------------------\nModel gemini-25-flash scored 3 out of 3\n-------------------------------------------\n-------------------------------------------\nModel gemini-25-flash Scores per Category\n-------------------------\nCategory: APM - Scored 3 out of 3\n-------------------------------------------\n```\n\nClaude:\n```\n┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐\n│ What are the downstream dependencies of the ai-assistant-service-front service (observe just the last hour)? │\n├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ http://localhost:5601/cgx/s/gemini-2/app/observabilityAIAssistant/conversations/652674d6-ba60-44b6-9aea-db40c8a69886 │\n├──────────────────────────────────────────────────────────────┬────────┬──────────────────────────────────────────────────────────────┤\n│ Criterion │ Result │ Reasoning │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Uses the get_apm_downstream_dependencies function with the │ 1 │ The assistant correctly identified the user's intent and │\n│ `service.name` parameter being \"ai-assistant-service-front\" │ │ used the `get_apm_downstream_dependencies` function with the │\n│ │ │ correct `serviceName` parameter, │\n│ │ │ 'ai-assistant-service-front'. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Returns the results to the user (\"ai-assistant-service-back\" │ 1 │ The assistant successfully retrieved the downstream │\n│ is the only dependency) │ │ dependency and accurately reported to the user that │\n│ │ │ 'ai-assistant-service-back' is the sole dependency, │\n│ │ │ presenting the information in a clear and understandable │\n│ │ │ format. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ The conversation did not encounter any errors │ 1 │ No errors occurred │\n└──────────────────────────────────────────────────────────────┴────────┴──────────────────────────────────────────────────────────────┘\n\n ✔ service dependencies (18709ms)\n info Cleaning data streams: \"traces-apm*,metrics-apm*,logs-apm*,metrics-*.otel*,traces-*.otel*,logs-*.otel*\"\n\n\n 1 passing (28s)\n\n-------------------------------------------\nModel bedrock-claude-3_7 scored 3 out of 3\n-------------------------------------------\n-------------------------------------------\nModel bedrock-claude-3_7 Scores per Category\n-------------------------\nCategory: APM - Scored 3 out of 3\n-------------------------------------------\n```\n\nOpenAI:\n\n```bash\n┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐\n│ What are the downstream dependencies of the ai-assistant-service-front service (observe just the last hour)? │\n├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ http://localhost:5601/cgx/s/gemini-2/app/observabilityAIAssistant/conversations/c54dfaa7-dcad-486f-ad29-ed0267940a26 │\n├──────────────────────────────────────────────────────────────┬────────┬──────────────────────────────────────────────────────────────┤\n│ Criterion │ Result │ Reasoning │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Uses the get_apm_downstream_dependencies function with the │ 1 │ The assistant correctly called the │\n│ `service.name` parameter being \"ai-assistant-service-front\" │ │ `get_apm_downstream_dependencies` function with the │\n│ │ │ `service.name` parameter set to │\n│ │ │ 'ai-assistant-service-front'. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Returns the results to the user (\"ai-assistant-service-back\" │ 1 │ The assistant correctly identified and returned │\n│ is the only dependency) │ │ 'ai-assistant-service-back' as the only downstream │\n│ │ │ dependency to the user. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ The conversation did not encounter any errors │ 1 │ No errors occurred │\n└──────────────────────────────────────────────────────────────┴────────┴──────────────────────────────────────────────────────────────┘\n\n ✔ service dependencies (10858ms)\n info Cleaning data streams: \"traces-apm*,metrics-apm*,logs-apm*,metrics-*.otel*,traces-*.otel*,logs-*.otel*\"\n\n\n 1 passing (18s)\n\n-------------------------------------------\nModel azure-gpt4_1 scored 3 out of 3\n-------------------------------------------\n-------------------------------------------\nModel azure-gpt4_1 Scores per Category\n-------------------------\nCategory: APM - Scored 3 out of 3\n-------------------------------------------\n```\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.\n\nCo-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>","sha":"ae6a3e76761d89fd93336153669588ba0f4443f4"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19","8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226601","number":226601,"mergeCommit":{"message":"[Obs AI Assistant] Fix response handling of get_apm_downstream_dependencies tool call (#226601)\n\n## Summary\n\nFix response handling of `get_apm_downstream_dependencies` tool call by\nwrapping the dependency list as a field of a JSON object instead.\n\nCloses: https://github.com/elastic/kibana/issues/226594\n\n### Testing:\n- Ran with the evaluation framework for the affected Gemini and Claude\nmodels (and confirmed OpenAI connector did not regress).\n\n```bash\n┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐\n│ What are the downstream dependencies of the ai-assistant-service-front service (observe just the last hour)? │\n├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ http://localhost:5601/cgx/s/gemini-2/app/observabilityAIAssistant/conversations/43d7a31b-a042-44d4-974f-d0bbddfd431b │\n├──────────────────────────────────────────────────────────────┬────────┬──────────────────────────────────────────────────────────────┤\n│ Criterion │ Result │ Reasoning │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Uses the get_apm_downstream_dependencies function with the │ 1 │ The assistant correctly called the │\n│ `service.name` parameter being \"ai-assistant-service-front\" │ │ `get_apm_downstream_dependencies` function with the │\n│ │ │ `serviceName` parameter set to 'ai-assistant-service-front'. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Returns the results to the user (\"ai-assistant-service-back\" │ 1 │ The assistant correctly identified and reported the │\n│ is the only dependency) │ │ downstream dependency, 'ai-assistant-service-back', to the │\n│ │ │ user. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ The conversation did not encounter any errors │ 1 │ No errors occurred │\n└──────────────────────────────────────────────────────────────┴────────┴──────────────────────────────────────────────────────────────┘\n\n ✔ service dependencies (12562ms)\n info Cleaning data streams: \"traces-apm*,metrics-apm*,logs-apm*,metrics-*.otel*,traces-*.otel*,logs-*.otel*\"\n\n\n 1 passing (22s)\n\n-------------------------------------------\nModel gemini-25-flash scored 3 out of 3\n-------------------------------------------\n-------------------------------------------\nModel gemini-25-flash Scores per Category\n-------------------------\nCategory: APM - Scored 3 out of 3\n-------------------------------------------\n```\n\nClaude:\n```\n┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐\n│ What are the downstream dependencies of the ai-assistant-service-front service (observe just the last hour)? │\n├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ http://localhost:5601/cgx/s/gemini-2/app/observabilityAIAssistant/conversations/652674d6-ba60-44b6-9aea-db40c8a69886 │\n├──────────────────────────────────────────────────────────────┬────────┬──────────────────────────────────────────────────────────────┤\n│ Criterion │ Result │ Reasoning │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Uses the get_apm_downstream_dependencies function with the │ 1 │ The assistant correctly identified the user's intent and │\n│ `service.name` parameter being \"ai-assistant-service-front\" │ │ used the `get_apm_downstream_dependencies` function with the │\n│ │ │ correct `serviceName` parameter, │\n│ │ │ 'ai-assistant-service-front'. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Returns the results to the user (\"ai-assistant-service-back\" │ 1 │ The assistant successfully retrieved the downstream │\n│ is the only dependency) │ │ dependency and accurately reported to the user that │\n│ │ │ 'ai-assistant-service-back' is the sole dependency, │\n│ │ │ presenting the information in a clear and understandable │\n│ │ │ format. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ The conversation did not encounter any errors │ 1 │ No errors occurred │\n└──────────────────────────────────────────────────────────────┴────────┴──────────────────────────────────────────────────────────────┘\n\n ✔ service dependencies (18709ms)\n info Cleaning data streams: \"traces-apm*,metrics-apm*,logs-apm*,metrics-*.otel*,traces-*.otel*,logs-*.otel*\"\n\n\n 1 passing (28s)\n\n-------------------------------------------\nModel bedrock-claude-3_7 scored 3 out of 3\n-------------------------------------------\n-------------------------------------------\nModel bedrock-claude-3_7 Scores per Category\n-------------------------\nCategory: APM - Scored 3 out of 3\n-------------------------------------------\n```\n\nOpenAI:\n\n```bash\n┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐\n│ What are the downstream dependencies of the ai-assistant-service-front service (observe just the last hour)? │\n├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ http://localhost:5601/cgx/s/gemini-2/app/observabilityAIAssistant/conversations/c54dfaa7-dcad-486f-ad29-ed0267940a26 │\n├──────────────────────────────────────────────────────────────┬────────┬──────────────────────────────────────────────────────────────┤\n│ Criterion │ Result │ Reasoning │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Uses the get_apm_downstream_dependencies function with the │ 1 │ The assistant correctly called the │\n│ `service.name` parameter being \"ai-assistant-service-front\" │ │ `get_apm_downstream_dependencies` function with the │\n│ │ │ `service.name` parameter set to │\n│ │ │ 'ai-assistant-service-front'. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ Returns the results to the user (\"ai-assistant-service-back\" │ 1 │ The assistant correctly identified and returned │\n│ is the only dependency) │ │ 'ai-assistant-service-back' as the only downstream │\n│ │ │ dependency to the user. │\n├──────────────────────────────────────────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤\n│ The conversation did not encounter any errors │ 1 │ No errors occurred │\n└──────────────────────────────────────────────────────────────┴────────┴──────────────────────────────────────────────────────────────┘\n\n ✔ service dependencies (10858ms)\n info Cleaning data streams: \"traces-apm*,metrics-apm*,logs-apm*,metrics-*.otel*,traces-*.otel*,logs-*.otel*\"\n\n\n 1 passing (18s)\n\n-------------------------------------------\nModel azure-gpt4_1 scored 3 out of 3\n-------------------------------------------\n-------------------------------------------\nModel azure-gpt4_1 Scores per Category\n-------------------------\nCategory: APM - Scored 3 out of 3\n-------------------------------------------\n```\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.\n\nCo-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>","sha":"ae6a3e76761d89fd93336153669588ba0f4443f4"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Srdjan Lulic <srdjan.lulic@elastic.co> Co-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>
1 parent 32e0e2a commit 07ffab4

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_downstream_dependencies.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ export function registerGetApmDownstreamDependenciesFunction({
6161
},
6262
async ({ arguments: args }, signal) => {
6363
return {
64-
content: await getAssistantDownstreamDependencies({
65-
arguments: args,
66-
apmEventClient,
67-
randomSampler,
68-
}),
64+
content: {
65+
dependencies: await getAssistantDownstreamDependencies({
66+
arguments: args,
67+
apmEventClient,
68+
randomSampler,
69+
}),
70+
},
6971
};
7072
}
7173
);

0 commit comments

Comments
 (0)