diff --git a/gui/src/redux/thunks/streamNormalInput.ts b/gui/src/redux/thunks/streamNormalInput.ts index 43e431271..a4ce0007d 100644 --- a/gui/src/redux/thunks/streamNormalInput.ts +++ b/gui/src/redux/thunks/streamNormalInput.ts @@ -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, diff --git a/packages/config-yaml/src/schemas/data/index.ts b/packages/config-yaml/src/schemas/data/index.ts index 7251e12a7..1d8b59547 100644 --- a/packages/config-yaml/src/schemas/data/index.ts +++ b/packages/config-yaml/src/schemas/data/index.ts @@ -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, }, }, };