HostedAgentDefinition interface
託管代理程式定義。
- Extends
屬性
| code_configuration | 基於程式碼的部署配置。 提供這些功能用於基於程式碼的部署。 與 container_configuration 互斥——服務會驗證確切設定的是一個。 |
| container_configuration | 基於容器的部署配置。 提供基於映像的部署。 與code_configuration互斥——服務會驗證剛好設定了一個。 |
| cpu | 託管代理程式的 CPU 組態。 |
| environment_variables | 要在託管代理程式容器中設定的環境變數。 |
| kind | 那種經紀人。 |
| memory | 託管代理程式的記憶體組態。 |
| protocol_versions | 代理支援的入口通訊協定。 |
| telemetry_config | 可選客戶提供遙測設定,用於匯出容器日誌、追蹤資料及指標。 |
繼承的屬性
| rai_config | 負責任 AI (RAI) 內容篩選和安全功能的設定。 |
屬性詳細資料
code_configuration
基於程式碼的部署配置。 提供這些功能用於基於程式碼的部署。 與 container_configuration 互斥——服務會驗證確切設定的是一個。
code_configuration?: CodeConfiguration
屬性值
container_configuration
基於容器的部署配置。 提供基於映像的部署。 與code_configuration互斥——服務會驗證剛好設定了一個。
container_configuration?: ContainerConfiguration
屬性值
cpu
託管代理程式的 CPU 組態。
cpu: string
屬性值
string
environment_variables
要在託管代理程式容器中設定的環境變數。
environment_variables?: Record<string, string>
屬性值
Record<string, string>
kind
那種經紀人。
kind: "hosted"
屬性值
"hosted"
memory
託管代理程式的記憶體組態。
memory: string
屬性值
string