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
2 changes: 1 addition & 1 deletion docs/guides/delegation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
});
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/job-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading