fix(core): preserve bounded tool receipts

This commit is contained in:
Kit Langton 2026-07-20 14:58:58 -04:00
commit f7a72fdf32
22 changed files with 278 additions and 17 deletions

View file

@ -97,6 +97,10 @@ export type Definition<
readonly input: Input
readonly output: Output
readonly structured?: Structured
/** Expose encoded output to CodeMode instead of the persisted structured projection. */
readonly codeModeOutput?: "output"
/** Mark a receipt's `truncated` field when its model-facing text is bounded. */
readonly contentTruncation?: true
readonly permission?: string
readonly toStructuredOutput?: (input: {
readonly input: InputValue<Input>