[ES|QL] Build function arguments suggestions from hints#246736
Merged
sddonne merged 25 commits intoelastic:mainfrom Dec 22, 2025
Merged
[ES|QL] Build function arguments suggestions from hints#246736sddonne merged 25 commits intoelastic:mainfrom
sddonne merged 25 commits intoelastic:mainfrom
Conversation
sddonne
commented
Dec 17, 2025
src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.ts
Outdated
Show resolved
Hide resolved
Contributor
|
Pinging @elastic/kibana-esql (Team:ESQL) |
stratoula
approved these changes
Dec 22, 2025
Contributor
stratoula
left a comment
There was a problem hiding this comment.
This looks great and is very close to what I had in mind, thanks for trying this approach!
| serverlessOnly: true, | ||
| preview: true, | ||
| snapshotOnly: true, | ||
| snapshotOnly: false, |
Contributor
There was a problem hiding this comment.
Change it to true because we dont want to suggest it yet at kibana
| * custom autocompletion handlers. | ||
| * | ||
| * For each hint we need to provide: | ||
| * - a suggestionResolver to generate the autocomplettion items to shown for that param. |
Contributor
There was a problem hiding this comment.
Suggested change
| * - a suggestionResolver to generate the autocomplettion items to shown for that param. | |
| * - a suggestionResolver to generate the autocompletion items for this param. |
| * | ||
| * Important! | ||
| * Be mindful while implementing context resolvers, context is shared by the command and all functions used within it. | ||
| * If the data you need is already present, don't overwrite it, preffer merging it. |
Contributor
There was a problem hiding this comment.
Suggested change
| * If the data you need is already present, don't overwrite it, preffer merging it. | |
| * If the data you need is already present, don't overwrite it, prefer merging it. |
| 'entityType' | ||
| ); | ||
|
|
||
| describe('function parameters built from hints', () => { |
Contributor
There was a problem hiding this comment.
nit (the built is confusing me)
Suggested change
| describe('function parameters built from hints', () => { | |
| describe('function parameters autocomplete from hints', () => { |
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Page load bundle
History
|
mbondyra
added a commit
to mbondyra/kibana
that referenced
this pull request
Dec 22, 2025
…d_step_back * commit '51756d2722200a991607658d48ecda50aeb04a7d': (76 commits) [Synthetics] Fix SyncGlobalParamsSpaces flaky test (elastic#246487) [Synthetics] Fix useSyntheticsRules test (elastic#247259) [ES|QL] Fix index editor flaky test (elastic#247233) [ResponseOps][Reporting] Fix "failed to decrypt apiKey" error while disabling/enabling scheduled reports (elastic#247236) [Console] Update console definitions (main) (elastic#247214) [ES|QL] Esql indentation shortcut on the editor (elastic#247234) [Streams] Use original request for rules client when in default space (elastic#247014) Consolidate and improve unflattenObject (elastic#246725) [scout] use svl mode to run api-int tests (elastic#247223) SIEM Readiness V2 (elastic#245776) [ObsPresentation][A11y] Fix asset details flyout header announcement (elastic#246872) [Streams] Add abort support and silent mode for stream description generation (elastic#247082) [SLO] Add environment context to SLO feedback button (elastic#247221) Ignore the reason and retry systematically (elastic#246830) Update dependency @types/moment-duration-format to ^2.2.7 (main) (elastic#242221) [Streams 🌊 ] Add explicit waits for data grid rows before clicking expand button (elastic#246919) [Security Solution][Entity Analytics][Risk Scoring] Handle special characters in ESQL query for risk scoring (elastic#247060) [ML] Data frame analytics: Updates page headers (elastic#247097) [ES|QL] Build function arguments suggestions from hints (elastic#246736) Update dependency @hey-api/openapi-ts to v0.88.1 (main) (elastic#247210) ...
CAWilson94
pushed a commit
to CAWilson94/kibana
that referenced
this pull request
Jan 6, 2026
Closes elastic#237794 ## Summary For some special function arguments ES is now providing information about how to resolve them. For instance, functions that accepts inference endpoints. <img width="1169" height="301" alt="image" src="https://github.com/user-attachments/assets/9d3e212c-11dd-4a84-abfc-324587ea7c50" /> <img width="1163" height="261" alt="image" src="https://github.com/user-attachments/assets/9900a836-f82c-4d03-9126-bd63156fd2b6" /> This PR adds support for the `inference_endpoint` hint, and an easy way to extend it to other hints. --------- Co-authored-by: Stratou <efstratia.kalafateli@elastic.co>
dej611
pushed a commit
to dej611/kibana
that referenced
this pull request
Jan 8, 2026
Closes elastic#237794 ## Summary For some special function arguments ES is now providing information about how to resolve them. For instance, functions that accepts inference endpoints. <img width="1169" height="301" alt="image" src="https://github.com/user-attachments/assets/9d3e212c-11dd-4a84-abfc-324587ea7c50" /> <img width="1163" height="261" alt="image" src="https://github.com/user-attachments/assets/9900a836-f82c-4d03-9126-bd63156fd2b6" /> This PR adds support for the `inference_endpoint` hint, and an easy way to extend it to other hints. --------- Co-authored-by: Stratou <efstratia.kalafateli@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #237794
Summary
For some special function arguments ES is now providing information about how to resolve them. For instance, functions that accepts inference endpoints.
This PR adds support for the
inference_endpointhint, and an easy way to extend it to other hints.