Commit 73a05fd
authored
Sync SDK with latest API changes (#87)
# What does this PR do?
New rest API changes are being synced
## Test Plan
```
LLAMA_STACK_CONFIG="/Users/dineshyv/.llama/distributions/llamastack-fireworks/fireworks-run.yaml" pytest -v tests/client-sdk/agents/test_agents.py
/Users/dineshyv/miniconda3/envs/stack/lib/python3.10/site-packages/pytest_asyncio/plugin.py:208: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"
warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
===================================================================================== test session starts =====================================================================================
platform darwin -- Python 3.10.15, pytest-8.3.3, pluggy-1.5.0 -- /Users/dineshyv/miniconda3/envs/stack/bin/python
cachedir: .pytest_cache
rootdir: /Users/dineshyv/code/llama-stack
configfile: pyproject.toml
plugins: asyncio-0.24.0, anyio-4.8.0
asyncio: mode=strict, default_loop_scope=None
collected 6 items
tests/client-sdk/agents/test_agents.py::test_agent_simple PASSED [ 16%]
tests/client-sdk/agents/test_agents.py::test_builtin_tool_web_search PASSED [ 33%]
tests/client-sdk/agents/test_agents.py::test_builtin_tool_code_execution PASSED [ 50%]
tests/client-sdk/agents/test_agents.py::test_code_execution PASSED [ 66%]
tests/client-sdk/agents/test_agents.py::test_custom_tool PASSED [ 83%]
tests/client-sdk/agents/test_agents.py::test_rag_agent PASSED [100%]
=============================================================================== 6 passed, 5 warnings in 45.74s ================================================================================
```1 parent fb3ef47 commit 73a05fd
File tree
18 files changed
+1004
-349
lines changed- src/llama_stack_client
- resources
- eval
- types
- eval
- tests/api_resources
- eval
18 files changed
+1004
-349
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | | - | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
105 | | - | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | | - | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| 140 | + | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 152 | + | |
| 153 | + | |
157 | 154 | | |
158 | 155 | | |
159 | 156 | | |
| |||
187 | 184 | | |
188 | 185 | | |
189 | 186 | | |
| 187 | + | |
190 | 188 | | |
191 | 189 | | |
192 | 190 | | |
193 | 191 | | |
194 | | - | |
195 | 192 | | |
196 | 193 | | |
197 | 194 | | |
| |||
211 | 208 | | |
212 | 209 | | |
213 | 210 | | |
| 211 | + | |
| 212 | + | |
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
| |||
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
224 | | - | |
| 223 | + | |
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
229 | 228 | | |
230 | | - | |
231 | 229 | | |
232 | 230 | | |
233 | 231 | | |
| |||
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
| 240 | + | |
242 | 241 | | |
243 | 242 | | |
244 | | - | |
245 | 243 | | |
246 | 244 | | |
247 | 245 | | |
| |||
261 | 259 | | |
262 | 260 | | |
263 | 261 | | |
| 262 | + | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 274 | + | |
| 275 | + | |
282 | 276 | | |
283 | 277 | | |
284 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
15 | 11 | | |
16 | 12 | | |
17 | 13 | | |
| |||
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
23 | | - | |
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
| |||
72 | 67 | | |
73 | 68 | | |
74 | 69 | | |
| 70 | + | |
| 71 | + | |
75 | 72 | | |
76 | 73 | | |
77 | 74 | | |
| |||
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
87 | | - | |
| 84 | + | |
88 | 85 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 86 | + | |
94 | 87 | | |
95 | 88 | | |
96 | 89 | | |
97 | 90 | | |
98 | 91 | | |
99 | 92 | | |
100 | | - | |
101 | 93 | | |
| 94 | + | |
102 | 95 | | |
103 | 96 | | |
104 | 97 | | |
| |||
119 | 112 | | |
120 | 113 | | |
121 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
122 | 119 | | |
123 | 120 | | |
124 | 121 | | |
| |||
129 | 126 | | |
130 | 127 | | |
131 | 128 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 129 | + | |
| 130 | + | |
141 | 131 | | |
142 | 132 | | |
143 | 133 | | |
| |||
168 | 158 | | |
169 | 159 | | |
170 | 160 | | |
| 161 | + | |
| 162 | + | |
171 | 163 | | |
172 | 164 | | |
173 | 165 | | |
| |||
180 | 172 | | |
181 | 173 | | |
182 | 174 | | |
183 | | - | |
| 175 | + | |
184 | 176 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 177 | + | |
190 | 178 | | |
191 | 179 | | |
192 | 180 | | |
| |||
236 | 224 | | |
237 | 225 | | |
238 | 226 | | |
| 227 | + | |
| 228 | + | |
239 | 229 | | |
240 | 230 | | |
241 | 231 | | |
| |||
248 | 238 | | |
249 | 239 | | |
250 | 240 | | |
251 | | - | |
| 241 | + | |
252 | 242 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 243 | + | |
258 | 244 | | |
259 | 245 | | |
260 | 246 | | |
261 | 247 | | |
262 | 248 | | |
263 | 249 | | |
264 | | - | |
265 | 250 | | |
| 251 | + | |
266 | 252 | | |
267 | 253 | | |
268 | 254 | | |
| |||
283 | 269 | | |
284 | 270 | | |
285 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
286 | 276 | | |
287 | 277 | | |
288 | 278 | | |
| |||
293 | 283 | | |
294 | 284 | | |
295 | 285 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 286 | + | |
| 287 | + | |
305 | 288 | | |
306 | 289 | | |
307 | 290 | | |
| |||
332 | 315 | | |
333 | 316 | | |
334 | 317 | | |
| 318 | + | |
| 319 | + | |
335 | 320 | | |
336 | 321 | | |
337 | 322 | | |
| |||
344 | 329 | | |
345 | 330 | | |
346 | 331 | | |
347 | | - | |
| 332 | + | |
348 | 333 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 334 | + | |
354 | 335 | | |
355 | 336 | | |
356 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments