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