@@ -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 {
0 commit comments