Skip to content
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

Completion and input API improvements #3727

Merged
merged 7 commits into from
Oct 25, 2024

Conversation

jonsequitur
Copy link
Contributor

@jonsequitur jonsequitur commented Oct 22, 2024

This PR includes the following API improvements:

  • Simplify KernelDirectiveParameter.AddCompletions to remove an overload and make usage clearer, e.g. completion values are either returned as a sequence of string (in the simple case) or added to the KernelDirectiveCompletionContext (in the more complex case.) Only the latter has access to the KernelCompletionContext and only the latter is async.
  • Rename CompositeKernel.AddKernelConnector to AddConnectDirective to better align with new API names.
  • Add Kernel.GetInputsAsync to support programmatic use of form inputs.

@jonsequitur jonsequitur changed the title API improvements Completion and input API improvements Oct 22, 2024
@jonsequitur jonsequitur force-pushed the api-improvements-10-22-2024 branch from 4e70fb4 to 2e48bb6 Compare October 23, 2024 00:15
@jonsequitur jonsequitur marked this pull request as ready for review October 24, 2024 23:19
@jonsequitur jonsequitur enabled auto-merge (rebase) October 24, 2024 23:20
@jonsequitur jonsequitur disabled auto-merge October 24, 2024 23:20
@jonsequitur jonsequitur enabled auto-merge (squash) October 24, 2024 23:20
@jonsequitur jonsequitur force-pushed the api-improvements-10-22-2024 branch from 90471dc to 3c0671d Compare October 25, 2024 01:08
@jonsequitur jonsequitur merged commit 0365de1 into dotnet:main Oct 25, 2024
4 checks passed
@jonsequitur jonsequitur added the Area-Language Services IntelliSense, LSP, and related label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Language Services IntelliSense, LSP, and related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants