11using Liquid . Core . Entities ;
2+ using Liquid . Core . GenAi . Entities ;
3+ using Liquid . Core . GenAi . Settings ;
24using Liquid . Core . Settings ;
35using System ;
46using System . Collections . Generic ;
57using System . Threading . Tasks ;
68
7- namespace Liquid . Core . Interfaces
9+ namespace Liquid . Core . GenAi
810{
911 /// <summary>
1012 /// This service is the hub of Liquid adapter custom completions for Generative AI.
1113 /// </summary>
12- public interface ILiquidChatCompletions
14+ public interface ILiquidGenAi
1315 {
14-
1516 /// <summary>
1617 /// Get chat completions for provided content and functions.
1718 /// </summary>
1819 /// <param name="messages">Context messages associated with chat completions request.</param>
1920 /// <param name="functions"> A list of functions the model may generate JSON inputs for.</param>
2021 /// <param name="settings">The options for chat completions request.</param>
21- Task < ChatCompletionResult > FunctionCalling ( ChatMessages messages , List < FunctionBody > functions , CompletionsSettings settings ) ;
22+ Task < ChatCompletionResult > FunctionCalling ( LiquidChatMessages messages , List < FunctionBody > functions , CompletionsOptions settings ) ;
2223
2324 /// <summary>
2425 /// Get chat completions for provided chat context messages.
@@ -31,15 +32,15 @@ public interface ILiquidChatCompletions
3132 /// Typical usage begins with a chat message for the System role that provides instructions for
3233 /// the behavior of the assistant, followed by alternating messages between the User and
3334 /// Assistant roles.</param>
34- Task < ChatCompletionResult > ChatCompletions ( string content , string prompt , CompletionsSettings settings , ChatMessages ? chatHistory = null ) ;
35+ Task < ChatCompletionResult > CompleteChatAsync ( string content , string prompt , CompletionsOptions settings , LiquidChatMessages chatHistory = null ) ;
3536
3637 /// <summary>
37- /// Return the computed embeddings for a given prompt .
38+ /// Get chat completions for provided chat context messages and functions .
3839 /// </summary>
39- /// <param name="description">Input texts to get embeddings for, encoded as a an array of strings .</param>
40- /// <param name="modelName"> </param>
41- /// <param name="clientId">Client connection alias to use for a chat completions request.
42- /// This connection must be configured in application previously <see cref="GenAiSettings"/> </param>
43- Task < ReadOnlyMemory < float > > GetEmbeddings ( string description , string modelName , string clientId ) ;
40+ /// <param name="messages">Messages associated with chat completions request .</param>
41+ /// <param name="functions"> A list of functions the model may generate JSON inputs for. </param>
42+ /// <param name="chatHistory"> The collection of context messages associated with this chat completions request. </param>
43+ /// <param name="settings">The options for chat completions request. </param>
44+ Task < ChatCompletionResult > CompleteChatAsync ( LiquidChatMessages messages , CompletionsOptions settings , List < FunctionBody > functions = null , LiquidChatMessages chatHistory = null ) ;
4445 }
4546}
0 commit comments