refactor: stabilize runtime and unify config

This commit is contained in:
lpf
2026-03-14 21:40:12 +08:00
parent 60eee65fec
commit 341e578c9f
75 changed files with 3081 additions and 1627 deletions

View File

@@ -92,3 +92,21 @@ type ToolFunctionDefinition struct {
Parameters map[string]interface{} `json:"parameters"`
Strict *bool `json:"strict,omitempty"`
}
type ProviderExecutionError struct {
Code string `json:"code,omitempty"`
Message string `json:"message,omitempty"`
Stage string `json:"stage,omitempty"`
Retryable bool `json:"retryable,omitempty"`
Source string `json:"source,omitempty"`
}
type ProviderExecutionResult struct {
Body []byte `json:"-"`
StatusCode int `json:"status_code,omitempty"`
ContentType string `json:"content_type,omitempty"`
AttemptKind string `json:"attempt_kind,omitempty"`
Retryable bool `json:"retryable,omitempty"`
Failure oauthFailureReason `json:"failure_reason,omitempty"`
Error *ProviderExecutionError `json:"error,omitempty"`
}