# LangChain - Anthropic-compatible Endpoints # Reuses Anthropic integration schemas messages: post: operationId: langchainAnthropicMessages summary: Create message (LangChain - Anthropic format) description: | Creates a message using Anthropic-compatible format via LangChain. tags: - LangChain Integration requestBody: required: true content: application/json: schema: $ref: '../../../schemas/integrations/anthropic/messages.yaml#/AnthropicMessageRequest' responses: '200': description: Successful response content: application/json: schema: $ref: '../../../schemas/integrations/anthropic/messages.yaml#/AnthropicMessageResponse' text/event-stream: schema: $ref: '../../../schemas/integrations/anthropic/messages.yaml#/AnthropicStreamEvent' '400': description: Bad request content: application/json: schema: $ref: '../../../schemas/integrations/anthropic/common.yaml#/AnthropicError' '500': description: Internal server error content: application/json: schema: $ref: '../../../schemas/integrations/anthropic/common.yaml#/AnthropicError' security: - BearerAuth: [] - BasicAuth: [] - VirtualKeyAuth: [] - ApiKeyAuth: [] count-tokens: post: operationId: langchainAnthropicCountTokens summary: Count tokens (LangChain - Anthropic format) description: | Counts tokens using Anthropic-compatible format via LangChain. tags: - LangChain Integration requestBody: required: true content: application/json: schema: $ref: '../../../schemas/integrations/anthropic/count-tokens.yaml#/AnthropicCountTokensRequest' responses: '200': description: Successful response content: application/json: schema: $ref: '../../../schemas/integrations/anthropic/count-tokens.yaml#/AnthropicCountTokensResponse' '400': description: Bad request content: application/json: schema: $ref: '../../../schemas/integrations/anthropic/common.yaml#/AnthropicError' '500': description: Internal server error content: application/json: schema: $ref: '../../../schemas/integrations/anthropic/common.yaml#/AnthropicError' security: - BearerAuth: [] - BasicAuth: [] - VirtualKeyAuth: [] - ApiKeyAuth: []