From 1b6d34ef16b84f156d7eb69cb5c56b517cc19a02 Mon Sep 17 00:00:00 2001 From: Nick Ficano Date: Sat, 23 May 2026 23:21:01 -0400 Subject: [PATCH] docs: fix guide snippets and API examples --- docs/guides/delegation.md | 2 +- docs/guides/job-events.md | 2 +- docs/guides/jobs.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/delegation.md b/docs/guides/delegation.md index cff8bdd..a62b2f8 100644 --- a/docs/guides/delegation.md +++ b/docs/guides/delegation.md @@ -28,7 +28,7 @@ server.RegisterAgent("orchestrator", async (ctx, ct) => input: new { topic = "arcp" }, ct); var summary = await child.Result; - return new { summary = summary.Output }; + return new { summary = summary.Result?.Result }; }); ``` diff --git a/docs/guides/job-events.md b/docs/guides/job-events.md index 31fdcba..a78e5d3 100644 --- a/docs/guides/job-events.md +++ b/docs/guides/job-events.md @@ -34,7 +34,7 @@ server.RegisterAgent("researcher", async (ctx, ct) => await ctx.ProgressAsync(current: 1, total: 3, message: "fetched", ct); await ctx.LogAsync("info", "Processing ...", ct); - await ctx.MetricAsync("cost.inference", 0.012m, unit: "USD", ct); + await ctx.MetricAsync("cost.inference", 0.012, unit: "USD", cancellationToken: ct); await ctx.ArtifactRefAsync( uri: "s3://bucket/report.pdf", diff --git a/docs/guides/jobs.md b/docs/guides/jobs.md index 98c8383..3516564 100644 --- a/docs/guides/jobs.md +++ b/docs/guides/jobs.md @@ -58,7 +58,7 @@ await foreach (var ev in handle.Events(cancellationToken)) var result = await handle.Result; // result.Success == true // result.FinalStatus == "success" -// result.Output — the agent's return value deserialized +// result.Result?.Result — the agent's return value deserialized ``` ## Await result directly