Commit 9b47c50
feat(model): introduce rate limiting and guardrail models with typed … (#19)
* feat(model): introduce rate limiting and guardrail models with typed policy configurations
enhance proxy configuration with structured models for token rate limiting and AI guardrails,
transition policy definitions from dictionary to typed objects, and extend model proxy props
with execution role support; upgrade alibabacloud-agentrun dependency for improved capabilities
为代理配置引入结构化的令牌速率限制和 AI 防护模型,将策略定义从字典类型转为强类型对象,
并在模型代理属性中新增执行角色支持;升级 alibabacloud-agentrun 依赖以提升功能能力
Change-Id: Id35290e04cfb9c4f3f73933febe0d80ff65651a8
Signed-off-by: OhYee <[email protected]>
* Update agentrun/model/model.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: OhYee <[email protected]>
* Update agentrun/model/model.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: OhYee <[email protected]>
---------
Signed-off-by: OhYee <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent 9774103 commit 9b47c50
2 files changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
125 | 138 | | |
126 | 139 | | |
127 | 140 | | |
128 | | - | |
| 141 | + | |
129 | 142 | | |
130 | 143 | | |
| 144 | + | |
| 145 | + | |
131 | 146 | | |
132 | 147 | | |
133 | 148 | | |
134 | 149 | | |
135 | 150 | | |
136 | | - | |
| 151 | + | |
137 | 152 | | |
138 | 153 | | |
139 | 154 | | |
| |||
174 | 189 | | |
175 | 190 | | |
176 | 191 | | |
| 192 | + | |
177 | 193 | | |
178 | 194 | | |
179 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments