Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static string LookupWeather([Description("The city to look up weather for.")] st
});

// Bind to a fixed local URL so the paired client sample has a deterministic default.
// Override with the ASPNETCORE_URLS environment variable when needed.
// To use a different address, change the URL below and set RESPONSES_SERVER_URL in the client.
app.Run("http://localhost:5000");

// Application-owned trust decision. Replace with real authentication + authorization: verify the caller,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ The route persists each turn under a continuation id chosen by how the caller co
under the newly minted response id, so a later `previous_response_id` can branch from that exact point and
two branches from the same prior response stay independent.

The agent has a deterministic `lookup_weather` tool. Binds to `http://localhost:5000` (override with
`ASPNETCORE_URLS`).
The agent has a deterministic `lookup_weather` tool. Binds to `http://localhost:5000`. To use a different address,
change the URL passed to `app.Run` in `Program.cs` and set `RESPONSES_SERVER_URL` to the same address
in the client shell.

```bash
export FOUNDRY_PROJECT_ENDPOINT="https://<your-resource>.services.ai.azure.com/api/projects/<your-project>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static Workflow BuildWorkflow(AIAgent writer)
});

// Bind to a fixed local URL so the paired client sample has a deterministic default.
// Override with the ASPNETCORE_URLS environment variable when needed.
// To use a different address, change the URL below and set RESPONSES_SERVER_URL in the client.
app.Run("http://localhost:5001");

// Flattens the Responses input messages into a single brief string for the workflow's start executor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ This server supports **`previous_response_id` continuation only** and **rejects
with HTTP 400**. Because `previous_response_id` rotates every turn, the app owns a cursor that maps each
response id to the stable workflow session id, so the whole rotating chain resumes the same checkpointed
run. The first turn runs the workflow forward; later turns restore the latest checkpoint and run forward
with the new brief. Binds to `http://localhost:5001` (override with `ASPNETCORE_URLS`).
with the new brief. Binds to `http://localhost:5001`. To use a different address,
change the URL passed to `app.Run` in `Program.cs` and set `RESPONSES_SERVER_URL` to the same address
in the client shell.

`HostedWorkflowState` is constructed with a **workflow factory** and `cacheWorkflow: false` (the default,
shown explicitly), so it builds a fresh workflow instance for every run. This lets independent sessions run
Expand Down
Loading