Skip to content

Commit 1a8d85f

Browse files
committed
Implementation of POST v1/responses endpoint
1 parent f17ae57 commit 1a8d85f

22 files changed

Lines changed: 6094 additions & 1000 deletions

docs/openapi.json

Lines changed: 3848 additions & 951 deletions
Large diffs are not rendered by default.

docs/responses.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ The following fields are LCORE-specific request extensions and are not part of t
102102
| Field | Type | Description | Required |
103103
|-------|------|-------------|----------|
104104
| `generate_topic_summary` | boolean | Generate topic summary for new conversations | No |
105+
| `shield_ids` | array[string] | Safety shield IDs to apply. If omitted, all configured shields are used; if provided, must contain at least one valid shield ID (empty list returns 422). | No |
105106
| `solr` | dictionary | Solr vector_io provider query parameters | No |
106107

107108

@@ -119,6 +120,7 @@ The following table maps LCORE query request fields to the OpenResponses request
119120
| `no_tools` | `tool_choice` | `no_tools=true` mapped to `tool_choice="none"` |
120121
| `vector_store_ids` | `tools` + `tool_choice` | Vector stores can be explicitly specified and restricted by `file_search` tool type's `vector_store_ids` attribute |
121122
| `generate_topic_summary` | N/A | Exposed directly (LCORE-specific) |
123+
| `shield_ids` | N/A | Exposed directly (LCORE-specific) |
122124
| `solr` | N/A | Exposed directly (LCORE-specific) |
123125

124126
**Note:** The `media_type` attribute is not present in the LCORE specification, as downstream logic determines which format to process (structured `output` or textual `output_text` response attributes).
@@ -491,6 +493,7 @@ Vector store IDs are configured within the `tools` array (e.g., as `file_search`
491493
The API introduces extensions that are not part of the OpenResponses specification:
492494

493495
- `generate_topic_summary` (request) — When set to `true` and a new conversation is created, a topic summary is automatically generated and stored in conversation metadata.
496+
- `shield_ids` (request) — Optional list of safety shield IDs to apply. If omitted, all configured shields are used; if provided, must contain at least one valid shield ID (empty list returns 422).
494497
- `solr` (request) — Solr vector_io provider query parameters (e.g. filter queries).
495498
- `available_quotas` (response) — Provides real-time quota information from all configured quota limiters.
496499

0 commit comments

Comments
 (0)