TypeScript · 549 bytes Raw Blame History
1 // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2 import type { JsonValue } from "./serde_json/JsonValue";
3
4 /**
5 * Content block inside `Message::Assistant`. Matches the Anthropic
6 * Messages API block shape the CLI pipes through.
7 */
8 export type ContentBlock = { "type": "text", text: string, } | { "type": "thinking", text: string, } | { "type": "tool_use", id: string, name: string, input: JsonValue, } | { "type": "tool_result", toolUseId: string, content: string, isError: boolean, };