Skip to content

Commit fbd5e7d

Browse files
committed
Fmt
1 parent f688d22 commit fbd5e7d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/agent-sdk/src/autonomous.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ export async function callAgent(
7878
let content = "";
7979
let finishReason = "";
8080
let resultAgentId = "";
81-
const toolResults: { toolCallId: string; result: { error?: string; data?: unknown } }[] = [];
81+
const toolResults: {
82+
toolCallId: string;
83+
result: { error?: string; data?: unknown };
84+
}[] = [];
8285

8386
for (const line of lines) {
8487
const prefix = line.substring(0, 2);
@@ -123,7 +126,7 @@ export async function callAgent(
123126
toolResults: toolResults.map((toolResult) =>
124127
toolResult.result.error
125128
? { error: toolResult.result.error }
126-
: { data: toolResult.result.data }
129+
: { data: toolResult.result.data },
127130
),
128131
messageId,
129132
finishReason,

0 commit comments

Comments
 (0)