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
.Net: Remove obsoleted code for agent abstractions (#12391)
### Description
Remove obsoleted code for agent abstractions.
I also had to add some additional unit tests to keep the code coverage
rate above the threshold.
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
---------
Co-authored-by: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com>
/// <param name="message">A non-system message to append to the conversation.</param>
104
-
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
105
-
/// <remarks>
106
-
/// Only supports messages with <see href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-additional_messages">role = User or agent</see>.
107
-
/// </remarks>
108
-
[Obsolete("Pass messages directly to Invoke instead. This method will be removed after May 1st 2025.")]
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
119
-
/// <returns>An asynchronous enumeration of messages.</returns>
120
-
[Obsolete("Use the AzureAIAgentThread to retrieve messages instead. This method will be removed after May 1st 2025.")]
/// <param name="arguments">Optional arguments to pass to the agents's invocation, including any <see cref="PromptExecutionSettings"/>.</param>
131
-
/// <param name="kernel">The <see cref="Kernel"/> containing services, plugins, and other state for use by the agent.</param>
132
-
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
133
-
/// <returns>An asynchronous enumeration of response messages.</returns>
134
-
/// <remarks>
135
-
/// The `arguments` parameter is not currently used by the agent, but is provided for future extensibility.
136
-
/// </remarks>
137
-
[Obsolete("Use InvokeAsync with AgentThread instead. This method will be removed after May 1st 2025.")]
/// <param name="arguments">Optional arguments to pass to the agents's invocation, including any <see cref="PromptExecutionSettings"/>.</param>
245
-
/// <param name="kernel">The <see cref="Kernel"/> containing services, plugins, and other state for use by the agent.</param>
246
-
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
247
-
/// <returns>An asynchronous enumeration of response messages.</returns>
248
-
/// <remarks>
249
-
/// The `arguments` parameter is not currently used by the agent, but is provided for future extensibility.
250
-
/// </remarks>
251
-
[Obsolete("Use InvokeAsync with AgentThread instead. This method will be removed after May 1st 2025.")]
/// <param name="arguments">Optional arguments to pass to the agents's invocation, including any <see cref="PromptExecutionSettings"/>.</param>
366
-
/// <param name="kernel">The <see cref="Kernel"/> containing services, plugins, and other state for use by the agent.</param>
367
-
/// <param name="messages">Optional receiver of the completed messages that are generated.</param>
368
-
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
369
-
/// <returns>An asynchronous enumeration of messages.</returns>
370
-
/// <remarks>
371
-
/// The `arguments` parameter is not currently used by the agent, but is provided for future extensibility.
372
-
/// </remarks>
373
-
[Obsolete("Use InvokeStreamingAsync with AgentThread instead. This method will be removed after May 1st 2025.")]
/// <param name="arguments">Optional arguments to pass to the agents's invocation, including any <see cref="PromptExecutionSettings"/>.</param>
390
-
/// <param name="kernel">The <see cref="Kernel"/> containing services, plugins, and other state for use by the agent.</param>
391
-
/// <param name="messages">Optional receiver of the completed messages that are generated.</param>
392
-
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
393
-
/// <returns>An asynchronous enumeration of messages.</returns>
394
-
/// <remarks>
395
-
/// The `arguments` parameter is not currently used by the agent, but is provided for future extensibility.
396
-
/// </remarks>
397
-
[Obsolete("Use InvokeStreamingAsync with AgentThread instead. This method will be removed after May 1st 2025.")]
0 commit comments