-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Obs AI Assistant] Update the simulate function calling setting to support "auto" #209628
[Obs AI Assistant] Update the simulate function calling setting to support "auto" #209628
Conversation
/ci |
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
d4d3ba2
to
bdff547
Compare
...tions/observability/plugins/observability_ai_assistant_app/server/functions/documentation.ts
Outdated
Show resolved
Hide resolved
.../observability/plugins/observability_ai_assistant_management/common/function_calling_mode.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/private/translations/translations/fr-FR.json
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/observability_ai_assistant/server/service/client/index.ts
Outdated
Show resolved
Hide resolved
...tions/observability/plugins/observability_ai_assistant_app/server/functions/documentation.ts
Outdated
Show resolved
Hide resolved
...lutions/observability/plugins/observability_ai_assistant_app/server/functions/query/index.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Only suggesting would be getting rid of useSimulatedFunctionCalling
entirely if possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple questions, and I agree with Soren that ideally, we would totally get rid of the old useSimulatedFunctionCalling: boolean
parameter everywhere, but overall looking good, so pre-approving.
...tions/observability/plugins/observability_ai_assistant_app/server/functions/documentation.ts
Outdated
Show resolved
Hide resolved
@@ -137,8 +137,8 @@ export const OBSERVABILITY_LOGS_EXPLORER_ALLOWED_DATA_VIEWS_ID = | |||
export const OBSERVABILITY_LOGS_SHARED_NEW_LOGS_OVERVIEW_ID = 'observability:newLogsOverview'; | |||
export const OBSERVABILITY_ENTITY_CENTRIC_EXPERIENCE = 'observability:entityCentricExperience'; | |||
export const OBSERVABILITY_LOGS_DATA_ACCESS_LOG_SOURCES_ID = 'observability:logSources'; | |||
export const OBSERVABILITY_AI_ASSISTANT_SIMULATED_FUNCTION_CALLING = | |||
'observability:aiAssistantSimulatedFunctionCalling'; | |||
export const OBSERVABILITY_AI_ASSISTANT_FUNCTION_CALLING_MODE = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question: with the PR's changes, customers having manually set a value for the old setting key will lost their override.
Are we fine with it or shall we add a SO setting migration?
I think we're overall fine, but want to make sure we thought about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I also considered this. In the past we have removed settings (like the ability to specify a language for the assistant) and replaced it with something else (user instructions) without migrating. We also did this with the log index pattern.
The impact on users is quite light and the workaround is simple. So while I prefer not "breaking" customers I think in the long run we can provide a better, more bug-free product by keeping things simple and not maintaining strict backwards-compatability.
x-pack/platform/packages/shared/kbn-ai-assistant/src/hooks/use_simulated_function_calling.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/observability_ai_assistant/server/service/client/index.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code owners changes for kbn-management lgtm
bdff547
to
1d7d044
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obs ux management changes LGTM
7b11684
to
4576672
Compare
Starting backport for target branches: 8.18, 8.x, 9.0 https://github.com/elastic/kibana/actions/runs/13208051051 |
…pport "auto" (elastic#209628) Closes elastic/obs-ai-assistant-team#198 ## Summary The simulated function calling setting is currently a boolean. It needs to be updated to support the option `auto`. `export type FunctionCallingMode = 'native' | 'simulated' | 'auto';` If the setting is set to `false`, `auto` will be passed to the inference client. If the setting is `true`, `simulated` will be passed to it. Relates to elastic#208144 ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 343b80a)
…pport "auto" (elastic#209628) Closes elastic/obs-ai-assistant-team#198 ## Summary The simulated function calling setting is currently a boolean. It needs to be updated to support the option `auto`. `export type FunctionCallingMode = 'native' | 'simulated' | 'auto';` If the setting is set to `false`, `auto` will be passed to the inference client. If the setting is `true`, `simulated` will be passed to it. Relates to elastic#208144 ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 343b80a)
…pport "auto" (elastic#209628) Closes elastic/obs-ai-assistant-team#198 ## Summary The simulated function calling setting is currently a boolean. It needs to be updated to support the option `auto`. `export type FunctionCallingMode = 'native' | 'simulated' | 'auto';` If the setting is set to `false`, `auto` will be passed to the inference client. If the setting is `true`, `simulated` will be passed to it. Relates to elastic#208144 ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 343b80a)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… to support "auto" (#209628) (#210278) # Backport This will backport the following commits from `main` to `9.0`: - [[Obs AI Assistant] Update the simulate function calling setting to support "auto" (#209628)](#209628) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Viduni Wickramarachchi","email":"viduni.wickramarachchi@elastic.co"},"sourceCommit":{"committedDate":"2025-02-07T21:07:20Z","message":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\" (#209628)\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/198\n\n## Summary\n\nThe simulated function calling setting is currently a boolean. It needs\nto be updated to support the option `auto`.\n`export type FunctionCallingMode = 'native' | 'simulated' | 'auto';`\n\nIf the setting is set to `false`, `auto` will be passed to the inference\nclient. If the setting is `true`, `simulated` will be passed to it.\n\nRelates to https://github.com/elastic/kibana/pull/208144\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [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- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"343b80a8a0bd231791b1b8fc3fb213938b0b1c23","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:Obs AI Assistant","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\"","number":209628,"url":"https://github.com/elastic/kibana/pull/209628","mergeCommit":{"message":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\" (#209628)\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/198\n\n## Summary\n\nThe simulated function calling setting is currently a boolean. It needs\nto be updated to support the option `auto`.\n`export type FunctionCallingMode = 'native' | 'simulated' | 'auto';`\n\nIf the setting is set to `false`, `auto` will be passed to the inference\nclient. If the setting is `true`, `simulated` will be passed to it.\n\nRelates to https://github.com/elastic/kibana/pull/208144\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [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- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"343b80a8a0bd231791b1b8fc3fb213938b0b1c23"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209628","number":209628,"mergeCommit":{"message":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\" (#209628)\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/198\n\n## Summary\n\nThe simulated function calling setting is currently a boolean. It needs\nto be updated to support the option `auto`.\n`export type FunctionCallingMode = 'native' | 'simulated' | 'auto';`\n\nIf the setting is set to `false`, `auto` will be passed to the inference\nclient. If the setting is `true`, `simulated` will be passed to it.\n\nRelates to https://github.com/elastic/kibana/pull/208144\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [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- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"343b80a8a0bd231791b1b8fc3fb213938b0b1c23"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>
…g to support "auto" (#209628) (#210276) # Backport This will backport the following commits from `main` to `8.18`: - [[Obs AI Assistant] Update the simulate function calling setting to support "auto" (#209628)](#209628) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Viduni Wickramarachchi","email":"viduni.wickramarachchi@elastic.co"},"sourceCommit":{"committedDate":"2025-02-07T21:07:20Z","message":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\" (#209628)\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/198\n\n## Summary\n\nThe simulated function calling setting is currently a boolean. It needs\nto be updated to support the option `auto`.\n`export type FunctionCallingMode = 'native' | 'simulated' | 'auto';`\n\nIf the setting is set to `false`, `auto` will be passed to the inference\nclient. If the setting is `true`, `simulated` will be passed to it.\n\nRelates to https://github.com/elastic/kibana/pull/208144\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [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- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"343b80a8a0bd231791b1b8fc3fb213938b0b1c23","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:Obs AI Assistant","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\"","number":209628,"url":"https://github.com/elastic/kibana/pull/209628","mergeCommit":{"message":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\" (#209628)\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/198\n\n## Summary\n\nThe simulated function calling setting is currently a boolean. It needs\nto be updated to support the option `auto`.\n`export type FunctionCallingMode = 'native' | 'simulated' | 'auto';`\n\nIf the setting is set to `false`, `auto` will be passed to the inference\nclient. If the setting is `true`, `simulated` will be passed to it.\n\nRelates to https://github.com/elastic/kibana/pull/208144\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [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- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"343b80a8a0bd231791b1b8fc3fb213938b0b1c23"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209628","number":209628,"mergeCommit":{"message":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\" (#209628)\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/198\n\n## Summary\n\nThe simulated function calling setting is currently a boolean. It needs\nto be updated to support the option `auto`.\n`export type FunctionCallingMode = 'native' | 'simulated' | 'auto';`\n\nIf the setting is set to `false`, `auto` will be passed to the inference\nclient. If the setting is `true`, `simulated` will be passed to it.\n\nRelates to https://github.com/elastic/kibana/pull/208144\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [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- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"343b80a8a0bd231791b1b8fc3fb213938b0b1c23"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>
…pport "auto" (elastic#209628) Closes elastic/obs-ai-assistant-team#198 ## Summary The simulated function calling setting is currently a boolean. It needs to be updated to support the option `auto`. `export type FunctionCallingMode = 'native' | 'simulated' | 'auto';` If the setting is set to `false`, `auto` will be passed to the inference client. If the setting is `true`, `simulated` will be passed to it. Relates to elastic#208144 ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
1 similar comment
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
…pport "auto" (elastic#209628) Closes elastic/obs-ai-assistant-team#198 ## Summary The simulated function calling setting is currently a boolean. It needs to be updated to support the option `auto`. `export type FunctionCallingMode = 'native' | 'simulated' | 'auto';` If the setting is set to `false`, `auto` will be passed to the inference client. If the setting is `true`, `simulated` will be passed to it. Relates to elastic#208144 ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 343b80a)
… to support "auto" (#209628) (#210277) # Backport This will backport the following commits from `main` to `8.x`: - [[Obs AI Assistant] Update the simulate function calling setting to support "auto" (#209628)](#209628) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Viduni Wickramarachchi","email":"viduni.wickramarachchi@elastic.co"},"sourceCommit":{"committedDate":"2025-02-07T21:07:20Z","message":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\" (#209628)\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/198\n\n## Summary\n\nThe simulated function calling setting is currently a boolean. It needs\nto be updated to support the option `auto`.\n`export type FunctionCallingMode = 'native' | 'simulated' | 'auto';`\n\nIf the setting is set to `false`, `auto` will be passed to the inference\nclient. If the setting is `true`, `simulated` will be passed to it.\n\nRelates to https://github.com/elastic/kibana/pull/208144\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [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- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"343b80a8a0bd231791b1b8fc3fb213938b0b1c23","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:Obs AI Assistant","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\"","number":209628,"url":"https://github.com/elastic/kibana/pull/209628","mergeCommit":{"message":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\" (#209628)\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/198\n\n## Summary\n\nThe simulated function calling setting is currently a boolean. It needs\nto be updated to support the option `auto`.\n`export type FunctionCallingMode = 'native' | 'simulated' | 'auto';`\n\nIf the setting is set to `false`, `auto` will be passed to the inference\nclient. If the setting is `true`, `simulated` will be passed to it.\n\nRelates to https://github.com/elastic/kibana/pull/208144\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [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- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"343b80a8a0bd231791b1b8fc3fb213938b0b1c23"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209628","number":209628,"mergeCommit":{"message":"[Obs AI Assistant] Update the simulate function calling setting to support \"auto\" (#209628)\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/198\n\n## Summary\n\nThe simulated function calling setting is currently a boolean. It needs\nto be updated to support the option `auto`.\n`export type FunctionCallingMode = 'native' | 'simulated' | 'auto';`\n\nIf the setting is set to `false`, `auto` will be passed to the inference\nclient. If the setting is `true`, `simulated` will be passed to it.\n\nRelates to https://github.com/elastic/kibana/pull/208144\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [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- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"343b80a8a0bd231791b1b8fc3fb213938b0b1c23"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>
Closes https://github.com/elastic/obs-ai-assistant-team/issues/198
Summary
The simulated function calling setting is currently a boolean. It needs to be updated to support the option
auto
.export type FunctionCallingMode = 'native' | 'simulated' | 'auto';
If the setting is set to
false
,auto
will be passed to the inference client. If the setting istrue
,simulated
will be passed to it.Relates to #208144
Checklist
release_note:*
label is applied per the guidelines