feat: add agent API and operational analytics
This commit is contained in:
1 parent
720ea0652a
commit
e8b730b592
65 files changed
+2650
-1214
No files matched your search
@@ -13,6 +13,11 @@ export interface ProcessedPost {
|
||||
detectedGender: DetectedGender;
|
||||
generatedMessage: string;
|
||||
strategyId: string | null;
|
||||
experimentId: string | null;
|
||||
promptVersion: string | null;
|
||||
selectionReason: 'explore' | 'exploit' | null;
|
||||
modelId: string;
|
||||
sourceType: 'image' | 'chat';
|
||||
toneId: ToneKey;
|
||||
scripted: boolean;
|
||||
}
|
||||
@@ -213,6 +218,11 @@ export class ProcessorService {
|
||||
detectedGender: analysis.detectedGender,
|
||||
generatedMessage: message,
|
||||
strategyId: selectedStrategy?.id || null,
|
||||
experimentId: selectedStrategy?.experimentId ?? null,
|
||||
promptVersion: selectedStrategy?.promptVersion ?? null,
|
||||
selectionReason: selectedStrategy?.reason ?? null,
|
||||
modelId: this.config.openrouter.imageAnalysisModel,
|
||||
sourceType: 'image',
|
||||
toneId: tone.profile.id,
|
||||
scripted: tone.scripted !== null,
|
||||
};
|
||||
@@ -290,6 +300,11 @@ export class ProcessorService {
|
||||
detectedGender: detectedGender ?? 'unknown',
|
||||
generatedMessage: message,
|
||||
strategyId: selectedStrategy?.id || null,
|
||||
experimentId: selectedStrategy?.experimentId ?? null,
|
||||
promptVersion: selectedStrategy?.promptVersion ?? null,
|
||||
selectionReason: selectedStrategy?.reason ?? null,
|
||||
modelId: this.config.openrouter.chatModel,
|
||||
sourceType: 'chat',
|
||||
toneId: tone.profile.id,
|
||||
scripted: tone.scripted !== null,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user