refactor: return complete tool results inline
This commit is contained in:
@@ -286,7 +286,6 @@ const resolveReplayResult = (
|
||||
const right =
|
||||
response.right === undefined ? undefined : commitOutcomes(response.right);
|
||||
return {
|
||||
schema_version: 1,
|
||||
plan_digest: prepared.publicPlan.plan_digest,
|
||||
outcomes: [...outcomes, ...(right ?? [])],
|
||||
...(right === undefined
|
||||
|
||||
@@ -121,7 +121,6 @@ export const terminationResult = (
|
||||
}));
|
||||
const differential = prepared.publicPlan.right !== undefined;
|
||||
return {
|
||||
schema_version: 1,
|
||||
plan_digest: prepared.publicPlan.plan_digest,
|
||||
outcomes: [...outcomes, ...(differential ? outcomes : [])],
|
||||
...(differential
|
||||
|
||||
Reference in New Issue
Block a user