feat(agent): Display agent actions on the UI
This commit is contained in:
parent
29146a03dc
commit
09799a880b
9 changed files with 407 additions and 44 deletions
|
|
@ -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: '',
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue