File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
articles/ai-foundry/agents/how-to/tools Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -577,9 +577,9 @@ public class AgentExample {
577
577
public static void main (String [] args ) throws FileNotFoundException , URISyntaxException {
578
578
579
579
// variables for authenticating requests to the agent service
580
- String projectEndpoint = " https://aahi-may-resource.services.ai.azure.com/api/projects/aahi-may " ; // System.getenv("PROJECT_ENDPOINT");
581
- String modelName = " gpt-4o " ; // System.getenv("MODEL_DEPLOYMENT_NAME");
582
- String aiSearchConnectionId = " /subscriptions/1f790876-6c63-4bc6-9fc6-62780b3d3e05/resourceGroups/rg-aahi-8164/providers/Microsoft.CognitiveServices/accounts/aahi-may-resource/connections/aahisearchservice " ; // System.getenv("AZURE_AI_CONNECTION_ID");
580
+ String projectEndpoint = System . getenv(" PROJECT_ENDPOINT" );
581
+ String modelName = System . getenv(" MODEL_DEPLOYMENT_NAME" );
582
+ String aiSearchConnectionId = System . getenv(" AZURE_AI_CONNECTION_ID" );
583
583
String indexName = " my-index" ;
584
584
585
585
PersistentAgentsClientBuilder clientBuilder = new PersistentAgentsClientBuilder (). endpoint(projectEndpoint)
Original file line number Diff line number Diff line change @@ -728,8 +728,8 @@ public class AgentExample {
728
728
public static void main (String [] args ) throws FileNotFoundException , URISyntaxException {
729
729
730
730
// variables for authenticating requests to the agent service
731
- String projectEndpoint = " https://aahi-may-resource.services.ai.azure.com/api/projects/aahi-may " ; // System.getenv("PROJECT_ENDPOINT");
732
- String modelName = " gpt-4o " ; // System.getenv("MODEL_DEPLOYMENT_NAME");
731
+ String projectEndpoint = System . getenv(" PROJECT_ENDPOINT" );
732
+ String modelName = System . getenv(" MODEL_DEPLOYMENT_NAME" );
733
733
734
734
PersistentAgentsClientBuilder clientBuilder = new PersistentAgentsClientBuilder (). endpoint(projectEndpoint)
735
735
.credential(new DefaultAzureCredentialBuilder (). build());
You can’t perform that action at this time.
0 commit comments