Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 135 additions & 3 deletions .speakeasy/in.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4051,7 +4051,7 @@ components:
- recraft
- reka
- relace
- sakana-ai
- sakana
- sambanova
- seed
- siliconflow
Expand Down Expand Up @@ -18544,7 +18544,7 @@ components:
additionalProperties:
nullable: true
type: object
sakana-ai:
sakana:
additionalProperties:
nullable: true
type: object
Expand Down Expand Up @@ -21267,6 +21267,58 @@ components:
$ref: '#/components/schemas/SubagentNestedTool'
type: array
type: object
SubmitGenerationFeedbackRequest:
description: Structured feedback about a specific generation
example:
category: incorrect_response
comment: The model repeated the same paragraph three times.
generation_id: gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG
properties:
category:
description: The category of feedback being reported
enum:
- latency
- incoherence
- incorrect_response
- formatting
- billing
- api_error
- other
example: incorrect_response
type: string
comment:
description: An optional free-text comment describing the feedback
example: The model repeated the same paragraph three times.
maxLength: 1000
type: string
generation_id:
description: The generation to submit feedback on
example: gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG
minLength: 1
type: string
required:
- generation_id
- category
type: object
SubmitGenerationFeedbackResponse:
description: Confirmation that the feedback was recorded
example:
data:
success: true
properties:
data:
properties:
success:
const: true
description: Whether the feedback was recorded
example: true
type: boolean
required:
- success
type: object
required:
- data
type: object
SupportedParameters:
additionalProperties:
$ref: '#/components/schemas/CapabilityDescriptor'
Expand Down Expand Up @@ -24893,7 +24945,7 @@ paths:
- recraft
- reka
- relace
- sakana-ai
- sakana
- sambanova
- seed
- siliconflow
Expand Down Expand Up @@ -27438,6 +27490,86 @@ paths:
summary: Get stored prompt and completion content for a generation
tags:
- Generations
/generation/feedback:
post:
description: >-
Submit structured feedback on a generation the authenticated user made. [Management
key](/docs/guides/overview/auth/management-api-keys) required.
operationId: submitGenerationFeedback
requestBody:
content:
application/json:
example:
category: incorrect_response
comment: The model repeated the same paragraph three times.
generation_id: gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG
schema:
$ref: '#/components/schemas/SubmitGenerationFeedbackRequest'
required: true
responses:
'200':
content:
application/json:
example:
data:
success: true
schema:
$ref: '#/components/schemas/SubmitGenerationFeedbackResponse'
description: Feedback recorded successfully
'400':
content:
application/json:
example:
error:
code: 400
message: Invalid request parameters
schema:
$ref: '#/components/schemas/BadRequestResponse'
description: Bad Request - Invalid request parameters or malformed input
'401':
content:
application/json:
example:
error:
code: 401
message: Missing Authentication header
schema:
$ref: '#/components/schemas/UnauthorizedResponse'
description: Unauthorized - Authentication required or invalid credentials
'404':
content:
application/json:
example:
error:
code: 404
message: Resource not found
schema:
$ref: '#/components/schemas/NotFoundResponse'
description: Not Found - Resource does not exist
'429':
content:
application/json:
example:
error:
code: 429
message: Rate limit exceeded
schema:
$ref: '#/components/schemas/TooManyRequestsResponse'
description: Too Many Requests - Rate limit exceeded
'500':
content:
application/json:
example:
error:
code: 500
message: Internal Server Error
schema:
$ref: '#/components/schemas/InternalServerResponse'
description: Internal Server Error - Unexpected server error
summary: Submit feedback for a generation
tags:
- Generations
x-speakeasy-name-override: submitFeedback
/guardrails:
get:
description: >-
Expand Down
Loading