Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Completion and input API improvements#3727

Merged
jonsequitur merged 7 commits into
dotnet:mainfrom
jonsequitur:api-improvements-10-22-2024
Oct 25, 2024
Merged

Completion and input API improvements#3727
jonsequitur merged 7 commits into
dotnet:mainfrom
jonsequitur:api-improvements-10-22-2024

Conversation

@jonsequitur

@jonsequitur jonsequitur commented Oct 22, 2024

Copy link
Copy Markdown
Contributor

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
@jonsequitur jonsequitur added the Area-Language Services IntelliSense, LSP, and related label Oct 30, 2024
@jonsequitur jonsequitur added Area-API and removed Area-Language Services IntelliSense, LSP, and related labels Mar 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants