fix(core): recover malformed tool input

This commit is contained in:
Dustin Deus 2026-07-18 19:13:52 +00:00
commit 7840a0d378
8 changed files with 109 additions and 16 deletions

View file

@ -127,6 +127,7 @@ export interface ToolStateError extends Schema.Schema.Type<typeof ToolStateError
export const ToolStateError = Schema.Struct({
status: Schema.tag("error"),
input: Schema.Record(Schema.String, Schema.Unknown),
raw: Schema.String.pipe(optional),
content: ToolContent.pipe(Schema.Array),
structured: Schema.Record(Schema.String, Schema.Unknown),
error: SessionError.Error,