llama-stack-mirror/docs/openapi_generator/pyopenapi
Ashwin Bharambe 61b4238912
feat(api): add extra_body parameter support with shields example (#3670)
## Summary
Introduce `ExtraBodyField` annotation to enable parameters that arrive
via extra_body in client SDKs but are accessible server-side with full
typing.

These parameters are documented in OpenAPI specs under
**`x-llama-stack-extra-body-params`** but excluded from generated SDK
signatures.

Add `shields` parameter to `create_openai_response` as the first
implementation using this pattern.

## Test Plan
- added an integration test which checks that shields parameter passed
via extra_body reaches server implementation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-03 13:25:09 -07:00
..
__init__.py move openapi from rfcs->docs 2024-09-18 16:09:17 -07:00
generator.py feat(api): add extra_body parameter support with shields example (#3670) 2025-10-03 13:25:09 -07:00
operations.py feat(api): add extra_body parameter support with shields example (#3670) 2025-10-03 13:25:09 -07:00
options.py docs: api separation (#3630) 2025-10-01 10:13:31 -07:00
README.md move openapi from rfcs->docs 2024-09-18 16:09:17 -07:00
specification.py feat(api): add extra_body parameter support with shields example (#3670) 2025-10-03 13:25:09 -07:00
template.html fix: update CDN url for stoplight 2025-03-14 15:46:45 -07:00
utility.py feat(api): add extra_body parameter support with shields example (#3670) 2025-10-03 13:25:09 -07:00