[Obs AI Assistant] Collapse *query tool calls#226078
[Obs AI Assistant] Collapse *query tool calls#226078dgieselaar merged 20 commits intoelastic:mainfrom
Conversation
1614dc2 to
c836b2a
Compare
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
/oblt-deploy |
x-pack/platform/plugins/shared/stack_connectors/server/connector_types/bedrock/bedrock.ts
Show resolved
Hide resolved
.../platform/plugins/shared/observability_ai_assistant/common/convert_messages_for_inference.ts
Outdated
Show resolved
Hide resolved
|
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
x-pack/platform/plugins/shared/observability_ai_assistant/server/service/client/index.ts
Show resolved
Hide resolved
|
Starting backport for target branches: 8.18, 8.19, 9.0, 9.1 https://github.com/elastic/kibana/actions/runs/16079637606 |
|
Starting backport for target branches: 8.18, 8.19, 9.0, 9.1 https://github.com/elastic/kibana/actions/runs/16079639517 |
This PR improves tool calling when using Claude as LLM --------- Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 3215416)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
This PR improves tool calling when using Claude as LLM --------- Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 3215416)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `9.1`: - [[Obs AI Assistant] Collapse *query tool calls (#226078)](#226078) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dario Gieselaar","email":"dario.gieselaar@elastic.co"},"sourceCommit":{"committedDate":"2025-07-04T19:03:41Z","message":"[Obs AI Assistant] Collapse *query tool calls (#226078)\n\nThis PR improves tool calling when using Claude as LLM\n\n---------\n\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3215416fa60f6b99017b0172797ea257bde62e5e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Obs AI Assistant","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0","v9.2.0","v8.18.4","v9.0.4"],"title":"[Obs AI Assistant] Collapse *query tool calls","number":226078,"url":"https://github.com/elastic/kibana/pull/226078","mergeCommit":{"message":"[Obs AI Assistant] Collapse *query tool calls (#226078)\n\nThis PR improves tool calling when using Claude as LLM\n\n---------\n\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3215416fa60f6b99017b0172797ea257bde62e5e"}},"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/226078","number":226078,"mergeCommit":{"message":"[Obs AI Assistant] Collapse *query tool calls (#226078)\n\nThis PR improves tool calling when using Claude as LLM\n\n---------\n\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3215416fa60f6b99017b0172797ea257bde62e5e"}},{"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: Dario Gieselaar <dario.gieselaar@elastic.co> Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This PR improves tool calling when using Claude as LLM --------- Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
This PR improves tool calling when using Claude as LLM --------- Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 3215416) # Conflicts: # x-pack/platform/packages/shared/kbn-inference-tracing/src/with_chat_complete_span.ts # x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts # x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts # x-pack/platform/plugins/shared/observability_ai_assistant/common/convert_messages_for_inference.ts # x-pack/platform/plugins/shared/observability_ai_assistant/server/service/client/index.ts # x-pack/platform/plugins/shared/observability_ai_assistant/server/service/client/operators/continue_conversation.ts # x-pack/platform/plugins/shared/stack_connectors/server/connector_types/bedrock/bedrock.ts # x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/index.ts # x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/complete/functions/execute_query.spec.ts
This PR improves tool calling when using Claude as LLM --------- Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 3215416)
# Backport This will backport the following commits from `main` to `8.18`: - [[Obs AI Assistant] Collapse *query tool calls (#226078)](#226078) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dario Gieselaar","email":"dario.gieselaar@elastic.co"},"sourceCommit":{"committedDate":"2025-07-04T19:03:41Z","message":"[Obs AI Assistant] Collapse *query tool calls (#226078)\n\nThis PR improves tool calling when using Claude as LLM\n\n---------\n\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3215416fa60f6b99017b0172797ea257bde62e5e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Obs AI Assistant","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0","v9.2.0","v8.18.4","v9.0.4"],"title":"[Obs AI Assistant] Collapse *query tool calls","number":226078,"url":"https://github.com/elastic/kibana/pull/226078","mergeCommit":{"message":"[Obs AI Assistant] Collapse *query tool calls (#226078)\n\nThis PR improves tool calling when using Claude as LLM\n\n---------\n\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3215416fa60f6b99017b0172797ea257bde62e5e"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/226656","number":226656,"state":"MERGED","mergeCommit":{"sha":"73495c5b24ec87b10df4e43e8a082c9132d9461a","message":"[9.1] [Obs AI Assistant] Collapse *query tool calls (#226078) (#226656)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.1`:\n- [[Obs AI Assistant] Collapse *query tool calls\n(#226078)](https://github.com/elastic/kibana/pull/226078)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>"}},{"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/226078","number":226078,"mergeCommit":{"message":"[Obs AI Assistant] Collapse *query tool calls (#226078)\n\nThis PR improves tool calling when using Claude as LLM\n\n---------\n\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3215416fa60f6b99017b0172797ea257bde62e5e"}},{"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-->
# Backport This will backport the following commits from `main` to `9.0`: - [[Obs AI Assistant] Collapse *query tool calls (#226078)](#226078) --------- Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
This PR improves tool calling when using Claude as LLM --------- Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 3215416) # Conflicts: # x-pack/platform/plugins/shared/observability_ai_assistant/common/convert_messages_for_inference.ts # x-pack/platform/plugins/shared/observability_ai_assistant/server/service/client/index.ts # x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/index.ts # x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/complete/functions/execute_query.spec.ts
# Backport This will backport the following commits from `main` to `8.19`: - [[Obs AI Assistant] Collapse *query tool calls (#226078)](#226078) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dario Gieselaar","email":"dario.gieselaar@elastic.co"},"sourceCommit":{"committedDate":"2025-07-04T19:03:41Z","message":"[Obs AI Assistant] Collapse *query tool calls (#226078)\n\nThis PR improves tool calling when using Claude as LLM\n\n---------\n\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3215416fa60f6b99017b0172797ea257bde62e5e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Obs AI Assistant","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0","v9.2.0","v8.18.4","v9.0.4"],"title":"[Obs AI Assistant] Collapse *query tool calls","number":226078,"url":"https://github.com/elastic/kibana/pull/226078","mergeCommit":{"message":"[Obs AI Assistant] Collapse *query tool calls (#226078)\n\nThis PR improves tool calling when using Claude as LLM\n\n---------\n\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3215416fa60f6b99017b0172797ea257bde62e5e"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/226656","number":226656,"state":"MERGED","mergeCommit":{"sha":"73495c5b24ec87b10df4e43e8a082c9132d9461a","message":"[9.1] [Obs AI Assistant] Collapse *query tool calls (#226078) (#226656)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.1`:\n- [[Obs AI Assistant] Collapse *query tool calls\n(#226078)](https://github.com/elastic/kibana/pull/226078)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>"}},{"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/226078","number":226078,"mergeCommit":{"message":"[Obs AI Assistant] Collapse *query tool calls (#226078)\n\nThis PR improves tool calling when using Claude as LLM\n\n---------\n\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3215416fa60f6b99017b0172797ea257bde62e5e"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/226780","number":226780,"state":"MERGED","mergeCommit":{"sha":"d08efa2303f8a9e4ae090c7d44b6f3a6ee19bce9","message":"[8.18] [Obs AI Assistant] Collapse *query tool calls (#226078) (#226780)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.18`:\n- [[Obs AI Assistant] Collapse *query tool calls\n(#226078)](https://github.com/elastic/kibana/pull/226078)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/226852","number":226852,"state":"MERGED","mergeCommit":{"sha":"c5d7606a4b7f197651d0e8779094fd4cf96775b4","message":"[9.0] [Obs AI Assistant] Collapse *query tool calls (#226078) (#226852)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.0`:\n- [[Obs AI Assistant] Collapse *query tool calls\n(#226078)](https://github.com/elastic/kibana/pull/226078)\n\n---------\n\nCo-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>"}}]}] BACKPORT--> Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
This PR improves tool calling when using Claude as LLM --------- Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This PR improves tool calling when using Claude as LLM