Skip to content

Commit 1b6d34e

Browse files
committed
docs: fix guide snippets and API examples
1 parent 3167d6f commit 1b6d34e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/guides/delegation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ server.RegisterAgent("orchestrator", async (ctx, ct) =>
2828
input: new { topic = "arcp" }, ct);
2929

3030
var summary = await child.Result;
31-
return new { summary = summary.Output };
31+
return new { summary = summary.Result?.Result };
3232
});
3333
```
3434

docs/guides/job-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ server.RegisterAgent("researcher", async (ctx, ct) =>
3434
await ctx.ProgressAsync(current: 1, total: 3, message: "fetched", ct);
3535

3636
await ctx.LogAsync("info", "Processing ...", ct);
37-
await ctx.MetricAsync("cost.inference", 0.012m, unit: "USD", ct);
37+
await ctx.MetricAsync("cost.inference", 0.012, unit: "USD", cancellationToken: ct);
3838

3939
await ctx.ArtifactRefAsync(
4040
uri: "s3://bucket/report.pdf",

docs/guides/jobs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ await foreach (var ev in handle.Events(cancellationToken))
5858
var result = await handle.Result;
5959
// result.Success == true
6060
// result.FinalStatus == "success"
61-
// result.Output — the agent's return value deserialized
61+
// result.Result?.Result — the agent's return value deserialized
6262
```
6363

6464
## Await result directly

0 commit comments

Comments
 (0)