You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EssentialCSharp.Chat.Shared/Services/AIChatService.cs
+76-28Lines changed: 76 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ public AIChatService(IOptions<AIOptions> options, AISearchService searchService,
46
46
stringprompt,
47
47
string?systemPrompt=null,
48
48
string?previousResponseId=null,
49
-
IMcpClient?mcpClient=null,
49
+
McpClient?mcpClient=null,
50
50
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
@@ -74,7 +74,7 @@ public AIChatService(IOptions<AIOptions> options, AISearchService searchService,
74
74
stringprompt,
75
75
string?systemPrompt=null,
76
76
string?previousResponseId=null,
77
-
IMcpClient?mcpClient=null,
77
+
McpClient?mcpClient=null,
78
78
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
315
321
string?systemPrompt=null,
322
+
McpClient?mcpClient=null,
316
323
CancellationTokencancellationToken=default)
317
324
{
318
325
// Construct the user input with system context if provided
// Create the streaming response using the Responses API
322
328
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
323
329
List<ResponseItem>responseItems=systemContextis not null
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
0 commit comments