feat: allow read tool to handle images (#3052)

This commit is contained in:
Aiden Cline
2025-10-09 09:05:11 -05:00
committed by GitHub
parent eb4b5721cd
commit 225adc46ba
7 changed files with 159 additions and 83 deletions

View File

@@ -1,9 +1,11 @@
import z from "zod/v4"
import type { MessageV2 } from "../session/message-v2"
export namespace Tool {
interface Metadata {
[key: string]: any
}
export type Context<M extends Metadata = Metadata> = {
sessionID: string
messageID: string
@@ -25,6 +27,7 @@ export namespace Tool {
title: string
metadata: M
output: string
attachments?: MessageV2.FilePart[]
}>
}>
}