11using Devlooped . Extensions . AI ;
2- using Devlooped . Extensions . AI . Grok ;
32using Microsoft . Agents . AI ;
43using Microsoft . Extensions . AI ;
54using Microsoft . Extensions . Configuration ;
@@ -139,7 +138,7 @@ Line 3
139138 - Step 1
140139 - Step 2
141140 - Step 3
142- """ , agent . GetService < ChatClientAgentOptions > ( ) ? . Instructions ) ;
141+ """ , agent . GetService < ChatClientAgentOptions > ( ) ? . ChatOptions ? . Instructions ) ;
143142 }
144143
145144 [ Fact ]
@@ -166,7 +165,7 @@ public void CanReloadConfiguration()
166165 var agent = app . Services . GetRequiredKeyedService < AIAgent > ( "bot" ) ;
167166
168167 Assert . Equal ( "Helpful chat agent" , agent . Description ) ;
169- Assert . Equal ( "You are a helpful agent." , agent . GetService < ChatClientAgentOptions > ( ) ? . Instructions ) ;
168+ Assert . Equal ( "You are a helpful agent." , agent . GetService < ChatClientAgentOptions > ( ) ? . ChatOptions ? . Instructions ) ;
170169 Assert . Equal ( "openai" , agent . GetService < AIAgentMetadata > ( ) ? . ProviderName ) ;
171170
172171 // Change the configuration to point to a different client
@@ -179,7 +178,7 @@ public void CanReloadConfiguration()
179178 configuration . Reload ( ) ;
180179
181180 Assert . Equal ( "Very helpful chat agent" , agent . Description ) ;
182- Assert . Equal ( "You are a very helpful chat agent." , agent . GetService < ChatClientAgentOptions > ( ) ? . Instructions ) ;
181+ Assert . Equal ( "You are a very helpful chat agent." , agent . GetService < ChatClientAgentOptions > ( ) ? . ChatOptions ? . Instructions ) ;
183182 Assert . Equal ( "xai" , agent . GetService < AIAgentMetadata > ( ) ? . ProviderName ) ;
184183 }
185184
0 commit comments