Skip to content

Commit e7cdb7f

Browse files
Rename AsRunnableAgent
1 parent 8008699 commit e7cdb7f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dotnet/src/Microsoft.Extensions.AI.Agents.AzureAI/ResponseExtensions.cs renamed to dotnet/src/Microsoft.Extensions.AI.Agents.AzureAI/PersistentAgentResponseExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ internal static class PersistentAgentResponseExtensions
1717
/// <param name="persistentAgentsClient">The client used to interact with persistent agents. Cannot be <see langword="null"/>.</param>
1818
/// <param name="chatOptions">The default <see cref="ChatOptions"/> to use when interacting with the agent.</param>
1919
/// <returns>A <see cref="ChatClientAgent"/> instance that can be used to perform operations on the persistent agent.</returns>
20-
public static ChatClientAgent AsRunnableAgent(this Response<PersistentAgent> persistentAgentResponse, PersistentAgentsClient persistentAgentsClient, ChatOptions? chatOptions = null)
20+
public static ChatClientAgent AsAIAgent(this Response<PersistentAgent> persistentAgentResponse, PersistentAgentsClient persistentAgentsClient, ChatOptions? chatOptions = null)
2121
{
2222
if (persistentAgentResponse is null)
2323
{
2424
throw new ArgumentNullException(nameof(persistentAgentResponse));
2525
}
2626

27-
return AsRunnableAgent(persistentAgentResponse.Value, persistentAgentsClient, chatOptions);
27+
return AsAIAgent(persistentAgentResponse.Value, persistentAgentsClient, chatOptions);
2828
}
2929

3030
/// <summary>
@@ -34,7 +34,7 @@ public static ChatClientAgent AsRunnableAgent(this Response<PersistentAgent> per
3434
/// <param name="persistentAgentsClient">The client used to interact with persistent agents. Cannot be <see langword="null"/>.</param>
3535
/// <param name="chatOptions">The default <see cref="ChatOptions"/> to use when interacting with the agent.</param>
3636
/// <returns>A <see cref="ChatClientAgent"/> instance that can be used to perform operations on the persistent agent.</returns>
37-
public static ChatClientAgent AsRunnableAgent(this PersistentAgent persistentAgentMetadata, PersistentAgentsClient persistentAgentsClient, ChatOptions? chatOptions = null)
37+
public static ChatClientAgent AsAIAgent(this PersistentAgent persistentAgentMetadata, PersistentAgentsClient persistentAgentsClient, ChatOptions? chatOptions = null)
3838
{
3939
if (persistentAgentMetadata is null)
4040
{

dotnet/src/Microsoft.Extensions.AI.Agents.AzureAI/PersistentAgentsClientExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static async Task<ChatClientAgent> GetAIAgentAsync(
3636
}
3737

3838
var persistentAgentResponse = await persistentAgentsClient.Administration.GetAgentAsync(agentId, cancellationToken).ConfigureAwait(false);
39-
return persistentAgentResponse.AsRunnableAgent(persistentAgentsClient, chatOptions);
39+
return persistentAgentResponse.AsAIAgent(persistentAgentsClient, chatOptions);
4040
}
4141

4242
/// <summary>

0 commit comments

Comments
 (0)