Adding TurnId to Tool call and API responses and error logs. (#3039)

Co-authored-by: Scott Densmore <scottdensmore@mac.com>
This commit is contained in:
uttamkanodia14
2025-07-10 00:19:30 +05:30
committed by GitHub
parent 6c12f9e0d9
commit 063481faa4
26 changed files with 289 additions and 72 deletions

View File

@@ -196,10 +196,12 @@ export async function main() {
process.exit(1);
}
const prompt_id = Math.random().toString(16).slice(2);
logUserPrompt(config, {
'event.name': 'user_prompt',
'event.timestamp': new Date().toISOString(),
prompt: input,
prompt_id,
prompt_length: input.length,
});
@@ -210,7 +212,7 @@ export async function main() {
settings,
);
await runNonInteractive(nonInteractiveConfig, input);
await runNonInteractive(nonInteractiveConfig, input, prompt_id);
process.exit(0);
}