feat(agent): Display agent actions on the UI

This commit is contained in:
Willie Zutz 2025-06-15 10:56:57 -06:00
parent 29146a03dc
commit 09799a880b
9 changed files with 407 additions and 44 deletions

View file

@ -110,6 +110,18 @@ const handleEmitterEvents = async (
sources = parsedData.data;
}
});
stream.on('agent_action', (data) => {
writer.write(
encoder.encode(
JSON.stringify({
type: 'agent_action',
data: data.data,
messageId: userMessageId,
}) + '\n',
),
);
});
let modelStats: ModelStats = {
modelName: '',
};