Skip to content

Commit 95cd411

Browse files
committed
Refactor customer_service_client.ps1 to use parameterized StartUrl for flexibility
1 parent a0ea09f commit 95cd411

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

samples-v2/openai_agents/customer_service/customer_service_client.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
param(
2+
[string]$StartUrl = 'http://localhost:7071/api/orchestrators/customer_service'
3+
)
4+
15
$ErrorActionPreference = 'Stop'
26

3-
$orchestration = Invoke-RestMethod 'http://localhost:7071/api/orchestrators/customer_service'
7+
$orchestration = Invoke-RestMethod $StartUrl
48

59

610
while ($true) {

0 commit comments

Comments
 (0)