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
// Create the streaming response using the Responses API
104
101
#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.
105
-
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.
340
336
337
+
// Set the system prompt via Instructions — this is stateless across turns when using previous_response_id,
338
+
// preventing accumulation of system messages in the conversation context.
#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.
402
406
ResponseCreationOptionsresponseOptions,
403
407
#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.
404
-
string?systemPrompt=null,
405
408
McpClient?mcpClient=null,
406
409
string?endUserId=null,
407
410
CancellationTokencancellationToken=default)
408
411
{
409
-
// Construct the user input with system context if provided
#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.
413
-
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.
0 commit comments