Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import { useChatStatus } from "../../store/hooks"
import { AIChainOfThought } from "../displays"
import type { ChainReasoningPart } from "../displays/AIChainOfThought"
import { AIMarkdownStreamingMessage } from "./AIMarkdownMessage"
import { ManageMemoryCard } from "./ManageMemoryCard"
import { SaveMemoryCard } from "./SaveMemoryCard"
import { ToolInvocationComponent } from "./ToolInvocationComponent"

const LazyAIDisplayFlowPart = React.lazy(() =>
Expand All @@ -24,9 +22,7 @@ interface AIMessagePartsProps {
isLastMessage: boolean
}

const bypassedToolNames = new Set(["tool-save_user_memory", "tool-manage_user_memory"])
const shouldBypassMergeToolName = (name: string) =>
bypassedToolNames.has(name) || name.startsWith("tool-display")
const shouldBypassMergeToolName = (name: string) => name.startsWith("tool-display")

export const AIMessageParts: React.FC<AIMessagePartsProps> = React.memo(
({ message, isLastMessage }) => {
Expand Down Expand Up @@ -132,24 +128,6 @@ export const AIMessageParts: React.FC<AIMessagePartsProps> = React.memo(
</ErrorBoundary>
)
}
case "tool-save_user_memory": {
return (
<SaveMemoryCard
key={partKey}
part={part as ToolUIPart<BizUITools>}
variant="tight"
/>
)
}
case "tool-manage_user_memory": {
return (
<ManageMemoryCard
key={partKey}
part={part as ToolUIPart<BizUITools>}
variant="tight"
/>
)
}

default: {
if (part.type.startsWith("tool-")) {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export { AIMarkdownStreamingMessage } from "./AIMarkdownMessage"
export { AIMessageParts } from "./AIMessageParts"
export { ManageMemoryCard } from "./ManageMemoryCard"
export { SaveMemoryCard } from "./SaveMemoryCard"
export { ToolInvocationComponent } from "./ToolInvocationComponent"
90 changes: 0 additions & 90 deletions apps/desktop/layer/renderer/src/modules/ai-memory/query.ts

This file was deleted.

Loading
Loading