diff --git a/LLama.SemanticKernel/ChatCompletion/LLamaSharpChatResult.cs b/LLama.SemanticKernel/ChatCompletion/LLamaSharpChatResult.cs index ec479f42..2abea981 100644 --- a/LLama.SemanticKernel/ChatCompletion/LLamaSharpChatResult.cs +++ b/LLama.SemanticKernel/ChatCompletion/LLamaSharpChatResult.cs @@ -1,4 +1,5 @@ using Microsoft.SemanticKernel.AI.ChatCompletion; +using Microsoft.SemanticKernel.Orchestration; using System.Runtime.CompilerServices; using System.Text; @@ -6,6 +7,7 @@ namespace LLamaSharp.SemanticKernel.ChatCompletion; internal sealed class LLamaSharpChatResult : IChatStreamingResult { + private readonly ModelResult _modelResult; private readonly IAsyncEnumerable _stream; /// @@ -15,7 +17,11 @@ internal sealed class LLamaSharpChatResult : IChatStreamingResult public LLamaSharpChatResult(IAsyncEnumerable stream) { _stream = stream; + this._modelResult = new ModelResult(stream); } + + public ModelResult ModelResult => this._modelResult; + /// public async Task GetChatMessageAsync(CancellationToken cancellationToken = default) { diff --git a/LLama.SemanticKernel/LLamaSharp.SemanticKernel.csproj b/LLama.SemanticKernel/LLamaSharp.SemanticKernel.csproj index 8de65692..e7a7589d 100644 --- a/LLama.SemanticKernel/LLamaSharp.SemanticKernel.csproj +++ b/LLama.SemanticKernel/LLamaSharp.SemanticKernel.csproj @@ -33,7 +33,7 @@ - +