(props: { message: AssistantMessage; parts: PartType[] })
| 65 | } |
| 66 | |
| 67 | export function AssistantMessageDisplay(props: { message: AssistantMessage; parts: PartType[] }) { |
| 68 | const filteredParts = createMemo(() => { |
| 69 | return props.parts?.filter((x) => { |
| 70 | return x.type !== "tool" || (x as ToolPart).tool !== "todoread" |
| 71 | }) |
| 72 | }) |
| 73 | return <For each={filteredParts()}>{(part) => <Part part={part} message={props.message} />}</For> |
| 74 | } |
| 75 | |
| 76 | export function UserMessageDisplay(props: { message: UserMessage; parts: PartType[] }) { |
| 77 | const text = createMemo(() => |
nothing calls this directly
no outgoing calls
no test coverage detected