Capture provider policy in backend execution targets
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user