fix(llm): preserve tool error defects (#27403)

This commit is contained in:
Kit Langton
2026-05-13 20:43:32 -04:00
committed by GitHub
parent 10c90eb445
commit ba5c8d3822
4 changed files with 48 additions and 23 deletions
+1
View File
@@ -198,5 +198,6 @@ export class LLMError extends Schema.TaggedErrorClass<LLMError>()("LLM.Error", {
*/
export class ToolFailure extends Schema.TaggedErrorClass<ToolFailure>()("LLM.ToolFailure", {
message: Schema.String,
error: Schema.optional(Schema.Defect),
metadata: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
}) {}