Files
bifrost/docs/openapi/paths/integrations/langchain/bedrock.yaml
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

95 lines
2.7 KiB
YAML

# LangChain - Bedrock-compatible Endpoints
# Reuses Bedrock integration schemas
converse:
post:
operationId: langchainBedrockConverse
summary: Converse with model (LangChain - Bedrock format)
description: |
Sends messages using AWS Bedrock Converse-compatible format via LangChain.
tags:
- LangChain Integration
parameters:
- name: modelId
in: path
required: true
schema:
type: string
description: Model ID
requestBody:
required: true
content:
application/json:
schema:
$ref: '../../../schemas/integrations/bedrock/converse.yaml#/BedrockConverseRequest'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../../schemas/integrations/bedrock/converse.yaml#/BedrockConverseResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '../../../schemas/integrations/bedrock/common.yaml#/BedrockError'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '../../../schemas/integrations/bedrock/common.yaml#/BedrockError'
security:
- BearerAuth: []
- BasicAuth: []
- VirtualKeyAuth: []
- ApiKeyAuth: []
converse-stream:
post:
operationId: langchainBedrockConverseStream
summary: Stream converse with model (LangChain - Bedrock format)
description: |
Streams messages using AWS Bedrock Converse-compatible format via LangChain.
tags:
- LangChain Integration
parameters:
- name: modelId
in: path
required: true
schema:
type: string
description: Model ID
requestBody:
required: true
content:
application/json:
schema:
$ref: '../../../schemas/integrations/bedrock/converse.yaml#/BedrockConverseRequest'
responses:
'200':
description: Successful streaming response
content:
application/x-amz-eventstream:
schema:
$ref: '../../../schemas/integrations/bedrock/converse.yaml#/BedrockStreamEvent'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '../../../schemas/integrations/bedrock/common.yaml#/BedrockError'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '../../../schemas/integrations/bedrock/common.yaml#/BedrockError'
security:
- BearerAuth: []
- BasicAuth: []
- VirtualKeyAuth: []
- ApiKeyAuth: []