feat(driveragent): preserve assistant reasoning in message history and update @push.rocks/smartai dependency to ^0.13.0

This commit is contained in:
2026-01-20 02:05:12 +00:00
parent c12a6a7be9
commit 44137a8710
5 changed files with 33 additions and 11 deletions

View File

@@ -121,10 +121,11 @@ export class DriverAgent {
});
}
// Add assistant response to history (store images if provided)
// Add assistant response to history (store images if provided, preserve reasoning for GPT-OSS)
const historyMessage: plugins.smartai.ChatMessage = {
role: 'assistant',
content: response.message,
reasoning: response.reasoning,
};
this.messageHistory.push(historyMessage);
@@ -189,10 +190,11 @@ export class DriverAgent {
});
}
// Add assistant response to history
// Add assistant response to history (preserve reasoning for GPT-OSS)
this.messageHistory.push({
role: 'assistant',
content: response.message,
reasoning: response.reasoning,
});
return {