Skip to content

Commit ec9dc01

Browse files
committed
patch
1 parent ce6acc0 commit ec9dc01

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agent-swarm-kit",
3-
"version": "1.1.131",
3+
"version": "1.1.132",
44
"description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
55
"author": {
66
"name": "Petr Tripolsky",

src/functions/target/json.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ const jsonInternal = beginContext(
130130
}
131131
};
132132

133+
let lastData: unknown = null;
134+
133135
for (let attempt = 0; attempt < maxAttempts; attempt++) {
134136
await makeHistory();
135137
const inputArgs: IOutlineArgs = {
@@ -161,6 +163,9 @@ const jsonInternal = beginContext(
161163
);
162164
}
163165
const data = JSON.parse(output.content) as IOutlineData;
166+
{
167+
lastData = data;
168+
}
164169
const validationArgs: IOutlineValidationArgs = {
165170
...inputArgs,
166171
data,
@@ -186,6 +191,7 @@ const jsonInternal = beginContext(
186191
errorMessage = getErrorMessage(error);
187192
console.error(`agent-swarm outline error outlineName=${outlineName} attempt=${attempt}`, {
188193
param,
194+
lastData,
189195
errorMessage,
190196
})
191197
}

0 commit comments

Comments
 (0)