mirror of
https://github.com/TanStack/ai.git
synced 2026-11-18 19:34:58 +00:00
* fix(ai): preserve AG-UI timestamps and tool results * fix(ai): preserve ModelMessage fields in AG-UI serialization * fix(ai): restore UI parts from message snapshots * fix(ai): preserve message metadata through persistence * fix(ai): preserve AG-UI tool errors through snapshots * chore: update AG-UI conversion changeset * fix(ai): preserve timestamp and resource identity * ci: apply automated fixes * fix(ai): restore name and UI parts across AG-UI round-trips * test(ai): address CodeRabbit nits on createdAt and ui-resource fixtures * test(ai): keep MCP widgets out of model content, not persistence metadata --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
1.8 KiB
1.8 KiB
| id | title |
|---|---|
| ToolResultPart | ToolResultPart |
Interface: ToolResultPart
Defined in: packages/ai/src/types.ts:440
Properties
content
content:
| string
| ContentPart<unknown, unknown, unknown, unknown, unknown>[];
Defined in: packages/ai/src/types.ts:445
createdAt?
optional createdAt?: Date;
Defined in: packages/ai/src/types.ts:449
error?
optional error?: string;
Defined in: packages/ai/src/types.ts:447
id?
optional id?: string;
Defined in: packages/ai/src/types.ts:442
metadata?
optional metadata?: Record<string, unknown>;
Defined in: packages/ai/src/types.ts:448
name?
optional name?: string;
Defined in: packages/ai/src/types.ts:443
state
state: ToolResultState;
Defined in: packages/ai/src/types.ts:446
toolCallId
toolCallId: string;
Defined in: packages/ai/src/types.ts:444
type
type: "tool-result";
Defined in: packages/ai/src/types.ts:441