Remove TextCompletion and GenerateContent from InferenceOperationType and GEN_AI_OPERATION_NAMES#242
Open
Remove TextCompletion and GenerateContent from InferenceOperationType and GEN_AI_OPERATION_NAMES#242
Conversation
… and GEN_AI_OPERATION_NAMES Agent-Logs-Url: https://github.com/microsoft/Agent365-nodejs/sessions/3acaba0f-3822-468d-b962-cf8531c7be53 Co-authored-by: fpfp100 <126631706+fpfp100@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove genAI operation name strings TextCompletion and GenerateContent
Remove TextCompletion and GenerateContent from InferenceOperationType and GEN_AI_OPERATION_NAMES
Apr 27, 2026
fpfp100
approved these changes
Apr 27, 2026
juliomenendez
left a comment
There was a problem hiding this comment.
Isn't this change going to break usage of older Semantic Kernel versions?
alexlu4250
approved these changes
Apr 30, 2026
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.
InferenceOperationTypecarried two legacy genAI operation values (TextCompletion,GenerateContent) that are no longer emitted by the SDK. These were also present in theGEN_AI_OPERATION_NAMESallowlist used bypartitionByIdentityto filter exportable spans.Changes
contracts.ts— DropsTEXT_COMPLETIONandGENERATE_CONTENTfromInferenceOperationType; enum now contains onlyCHAT.exporter/utils.ts— Removes'TextCompletion'and'GenerateContent'from theGEN_AI_OPERATION_NAMESallowlist.scopes.test.ts— Updates the one test usingInferenceOperationType.TEXT_COMPLETIONto useInferenceOperationType.CHAT.docs/design.md— Reflects the reduced enum.Original prompt
This pull request was created from Copilot chat.