Skip to content

Commit

Permalink
Update packages/ai-terminal/src/browser/ai-terminal-agent.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Langer <[email protected]>
  • Loading branch information
JonasHelming and planger authored Oct 3, 2024
1 parent d457fa2 commit 9e3bb84
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/ai-terminal/src/browser/ai-terminal-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,14 @@ recent-terminal-contents:
// since we do not actually hold complete conversions, the request/response pair is considered a session
const sessionId = generateUuid();
const requestId = generateUuid();
const requestEntry: CommunicationHistoryEntry = {
this.recordingService.recordRequest({
agentId: this.id,
sessionId,
timestamp: Date.now(),
requestId,
request: systemPrompt,
messages: [userPrompt],
};

this.recordingService.recordRequest(requestEntry);
});

try {
const result = await lm.request({
Expand Down

0 comments on commit 9e3bb84

Please sign in to comment.