feat: add agentinteraction dev data

This commit is contained in:
uinstinct 2025-05-23 11:27:15 +05:30
parent 2bad1383bd
commit 971c4de33e
2 changed files with 4 additions and 1 deletions

View file

@ -75,7 +75,7 @@ export const streamNormalInput = createAsyncThunk<
try {
if (state.session.mode === "chat" || state.session.mode === "agent") {
extra.ideMessenger.post("devdata/log", {
name: "chatInteraction",
name: state.session.mode === 'chat' ? "chatInteraction" : "agentInteraction",
data: {
prompt: next.value.prompt,
completion: next.value.completion,

View file

@ -72,6 +72,7 @@ const devEventAllVersionDataSchemas = z.object({
tokensGenerated: tokensGeneratedEventAllSchema,
chatInteraction: chatInteractionEventAllSchema,
editInteraction: editInteractionEventAllSchema,
agentInteraction: chatInteractionEventAllSchema
});
// Version and level specific schemas are organized here
@ -97,6 +98,7 @@ export const devDataVersionedSchemas = {
tokensGenerated: tokensGeneratedEventSchema_0_2_0,
chatInteraction: chatInteractionEventSchema_0_2_0,
editInteraction: editInteractionEventSchema_0_2_0,
agentInteraction: chatInteractionEventSchema_0_2_0,
},
noCode: {
autocomplete: autocompleteEventSchema_0_2_0_noCode,
@ -104,6 +106,7 @@ export const devDataVersionedSchemas = {
tokensGenerated: tokensGeneratedEventSchema_0_2_0_noCode,
chatInteraction: chatInteractionEventSchema_0_2_0_noCode,
editInteraction: editInteractionEventSchema_0_2_0_noCode,
agentInteraction: chatInteractionEventSchema_0_2_0_noCode,
},
},
};