Commit 5b354e4
authored
feat: handle tenant in Client (#758)
## Changes
- Rest client transport `rest` prepends path with tenant if provided.
- add `tenant_decorator.py`
- add TenantTransportDecorator` to `tenant_decorator.py` which
adds default tenant to requests in for provided
## Contributing
- [x] Follow the [`CONTRIBUTING`
Guide](https://github.com/a2aproject/a2a-python/blob/main/CONTRIBUTING.md).
- [x] Make your Pull Request title in the
<https://www.conventionalcommits.org/> specification.
- Important Prefixes for
[release-please](https://github.com/googleapis/release-please):
- `fix:` which represents bug fixes, and correlates to a
[SemVer](https://semver.org/) patch.
- `feat:` represents a new feature, and correlates to a SemVer minor.
- `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking
change (indicated by the `!`) and will result in a SemVer major.
- [x] Ensure the tests and linter pass (Run `bash scripts/format.sh`
from the repository root to format)
- [x] Appropriate docs were updated (if necessary)
Fixes #672 🦕1 parent ced3f99 commit 5b354e4
9 files changed
Lines changed: 1010 additions & 219 deletions
File tree
- src/a2a/client
- transports
- tests
- client
- transports
- integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
219 | | - | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
230 | | - | |
| 231 | + | |
231 | 232 | | |
232 | | - | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
258 | 263 | | |
259 | 264 | | |
260 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
| |||
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
| 187 | + | |
184 | 188 | | |
185 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| |||
203 | 210 | | |
204 | 211 | | |
205 | 212 | | |
| 213 | + | |
206 | 214 | | |
207 | 215 | | |
| 216 | + | |
208 | 217 | | |
209 | 218 | | |
210 | 219 | | |
| |||
235 | 244 | | |
236 | 245 | | |
237 | 246 | | |
| 247 | + | |
238 | 248 | | |
239 | 249 | | |
| 250 | + | |
240 | 251 | | |
241 | 252 | | |
242 | 253 | | |
| |||
265 | 276 | | |
266 | 277 | | |
267 | 278 | | |
| 279 | + | |
268 | 280 | | |
269 | 281 | | |
| 282 | + | |
270 | 283 | | |
271 | 284 | | |
272 | 285 | | |
| |||
297 | 310 | | |
298 | 311 | | |
299 | 312 | | |
| 313 | + | |
300 | 314 | | |
301 | 315 | | |
| 316 | + | |
302 | 317 | | |
303 | 318 | | |
304 | 319 | | |
| |||
319 | 334 | | |
320 | 335 | | |
321 | 336 | | |
| 337 | + | |
322 | 338 | | |
323 | 339 | | |
324 | 340 | | |
| |||
347 | 363 | | |
348 | 364 | | |
349 | 365 | | |
350 | | - | |
| 366 | + | |
351 | 367 | | |
352 | 368 | | |
353 | 369 | | |
| |||
363 | 379 | | |
364 | 380 | | |
365 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
366 | 386 | | |
367 | 387 | | |
368 | 388 | | |
| |||
425 | 445 | | |
426 | 446 | | |
427 | 447 | | |
| 448 | + | |
428 | 449 | | |
429 | 450 | | |
430 | 451 | | |
431 | 452 | | |
432 | 453 | | |
| 454 | + | |
433 | 455 | | |
434 | 456 | | |
435 | 457 | | |
436 | 458 | | |
437 | | - | |
| 459 | + | |
438 | 460 | | |
439 | 461 | | |
440 | 462 | | |
| |||
449 | 471 | | |
450 | 472 | | |
451 | 473 | | |
| 474 | + | |
452 | 475 | | |
453 | 476 | | |
454 | 477 | | |
| 478 | + | |
455 | 479 | | |
456 | 480 | | |
457 | 481 | | |
458 | | - | |
| 482 | + | |
459 | 483 | | |
460 | 484 | | |
461 | 485 | | |
| |||
464 | 488 | | |
465 | 489 | | |
466 | 490 | | |
| 491 | + | |
467 | 492 | | |
468 | 493 | | |
469 | 494 | | |
| 495 | + | |
470 | 496 | | |
471 | 497 | | |
472 | 498 | | |
473 | | - | |
| 499 | + | |
474 | 500 | | |
475 | 501 | | |
476 | 502 | | |
| |||
479 | 505 | | |
480 | 506 | | |
481 | 507 | | |
| 508 | + | |
482 | 509 | | |
483 | 510 | | |
484 | 511 | | |
| 512 | + | |
485 | 513 | | |
486 | 514 | | |
487 | 515 | | |
488 | | - | |
| 516 | + | |
489 | 517 | | |
490 | 518 | | |
491 | 519 | | |
| |||
0 commit comments