-
Notifications
You must be signed in to change notification settings - Fork 796
Add TextReasoningContent #6222
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
Add TextReasoningContent #6222
Conversation
Looks good. Do you think there should be reasoningtext equivalents for the cases where we concat
Of these, I'm more interested in the second one, since otherwise streamed output will produce a huge amount of overhead when added to conversation history, having separate content objects for every chunk of reasoning. |
@tghamm, IIRC, your anthropic library has two custom types for reasoning. Am I correct that this will enable you to replace one or both of them? I think one was for redacted content and the other not, so at a minimum I'd hope this could be used in place of the non-redacted one? |
I will hold off on the first; I'd like us to get more experience with this first. I'll do the second. |
@stephentoub You are correct about the two types, and I THINK using the So In short, yes, I believe this would allow for the replacement of at least one, if not both types I had to create. |
Actually the Reasoning Content represents the model Thinking, have we considered using the |
Personally, I prefer "reasoning" over "thinking". These models are generally referred to as reasoning, as this content represents the performed reasoning. @SteveSandersonMS, naming opinion? |
Agreed. Abstractly, "thinking" and "reasoning" are close enough to synonymous that I don't think there's any first-principles reason to say one is more accurate than the other. Practically, "reasoning" is the word most commonly used for this type of LLM behavior, so I'd side with that. I know there are examples of people referring to "thinking models" and "thinking tokens" but it seems a lot less common than "reasoning models" and "reasoning tokens". |
src/Libraries/Microsoft.Extensions.AI.Abstractions/Contents/TextReasoningContent.cs
Show resolved
Hide resolved
b62947d
to
4ef927f
Compare
* Add TextReasoningContent * Coalesce TextReasoningContent
Contributes to #6057
Microsoft Reviewers: Open in CodeFlow