Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

input.ts

9 lines387 Bytes

1import { ChatFileAttachment, ChatImageAttachment } from "@t3tools/contracts";
2import * as Schema from "effect/Schema";
3import * as Struct from "effect/Struct";
4​
5// Keep screenshot provenance in app metadata; its recursive tree breaks model tool schemas.
6export const McpAttachmentInput = Schema.Union([
7 ChatImageAttachment.mapFields(Struct.omit(["source"])),
8 ChatFileAttachment,
9]);