mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-15 00:36:56 +08:00
v2
This commit is contained in:
@@ -261,25 +261,6 @@ async function runAgentStream(params: {
|
||||
),
|
||||
storageUserId
|
||||
)
|
||||
} else if (eventType === 'tool') {
|
||||
patchMessagesInStore(
|
||||
(prev) =>
|
||||
prev.map((m) =>
|
||||
m.id === botId
|
||||
? {
|
||||
...m,
|
||||
steps: appendStep(m.steps, {
|
||||
id: `tool-${Date.now()}`,
|
||||
label: `Tool: ${data}`,
|
||||
status: 'running',
|
||||
detail: data,
|
||||
}),
|
||||
time: now(),
|
||||
}
|
||||
: m
|
||||
),
|
||||
storageUserId
|
||||
)
|
||||
} else if (eventType === 'done') {
|
||||
patchMessagesInStore(
|
||||
(prev) =>
|
||||
|
||||
Reference in New Issue
Block a user