feat: harden jsonl runtime reliability

This commit is contained in:
lpf
2026-04-13 13:41:01 +08:00
parent 36890c7ce0
commit fac235db80
34 changed files with 4370 additions and 757 deletions

View File

@@ -101,6 +101,19 @@ type ProviderExecutionError struct {
Source string `json:"source,omitempty"`
}
func (e *ProviderExecutionError) Error() string {
if e == nil {
return ""
}
if e.Message != "" {
return e.Message
}
if e.Code != "" {
return e.Code
}
return "provider execution error"
}
type ProviderExecutionResult struct {
Body []byte `json:"-"`
StatusCode int `json:"status_code,omitempty"`