Capture provider policy in backend execution targets

This commit is contained in:
2026-11-22 18:13:17 +00:00
parent 6056f93e55
commit adc700f96e
14 changed files with 69 additions and 9 deletions

View File

@@ -188,6 +188,8 @@ type PromptMessageTemplate struct {
// diagnostic metadata.
type Backend struct {
ID string
Provider string
ZeroCost bool
Endpoint string
APIKeyEnv string
ExtraParams map[string]any
@@ -236,6 +238,8 @@ type ExecutionTargetPresence struct {
// ExecutionTarget represents effective model runtime settings for a run.
type ExecutionTarget struct {
Provider string `yaml:"-" json:"-"`
ZeroCost bool `yaml:"-" json:"-"`
BackendID string `yaml:"backend" json:"backend_id,omitempty"`
Endpoint string `yaml:"endpoint" json:"endpoint"`
Model string `yaml:"model" json:"model"`