Skip to content

Commit 3767482

Browse files
committed
Log message history and system prompt for errors so we can debug them
1 parent 516251e commit 3767482

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/agent-runtime/src/run-agent-step.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,8 @@ export async function loopAgentSteps(
911911
totalSteps,
912912
directCreditsUsed: currentAgentState.directCreditsUsed,
913913
creditsUsed: currentAgentState.creditsUsed,
914+
messageHistory: currentAgentState.messageHistory,
915+
systemPrompt: system,
914916
},
915917
'Agent execution failed',
916918
)

0 commit comments

Comments
 (0)