vllm.entrypoints.anthropic.protocol
¶
Pydantic models for Anthropic API protocol.
Classes:
-
AnthropicContentBlock–Content block in message.
-
AnthropicContextManagement–Context management information for token counting.
-
AnthropicCountTokensRequest–Anthropic messages.count_tokens request.
-
AnthropicCountTokensResponse–Anthropic messages.count_tokens response.
-
AnthropicDelta–Delta for streaming responses.
-
AnthropicError–Error structure for Anthropic API.
-
AnthropicErrorResponse–Error response structure for Anthropic API.
-
AnthropicJsonOutputFormat–JSON output format configuration.
-
AnthropicMessage–Message structure.
-
AnthropicMessagesRequest–Anthropic Messages API request.
-
AnthropicMessagesResponse–Anthropic Messages API response.
-
AnthropicOutputConfig–Configuration options for the model's output, such as the output format.
-
AnthropicStreamEvent–Streaming event.
-
AnthropicThinkingConfigAdaptive–Extended thinking whose depth the model chooses.
-
AnthropicThinkingConfigEnabled–Extended thinking with a fixed token budget.
-
AnthropicTool–Tool definition.
-
AnthropicToolChoice–Tool Choice definition.
-
AnthropicUsage–Token usage information.
AnthropicContentBlock
¶
Bases: BaseModel
Content block in message.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicContextManagement
¶
AnthropicCountTokensRequest
¶
Bases: BaseModel
Anthropic messages.count_tokens request.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicCountTokensResponse
¶
Bases: BaseModel
Anthropic messages.count_tokens response.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicDelta
¶
Bases: BaseModel
Delta for streaming responses.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicError
¶
AnthropicErrorResponse
¶
AnthropicJsonOutputFormat
¶
Bases: BaseModel
JSON output format configuration.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicMessage
¶
AnthropicMessagesRequest
¶
Bases: BaseModel
Anthropic Messages API request.
Source code in vllm/entrypoints/anthropic/protocol.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | |
AnthropicMessagesResponse
¶
Bases: BaseModel
Anthropic Messages API response.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicOutputConfig
¶
Bases: BaseModel
Configuration options for the model's output, such as the output format.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicStreamEvent
¶
Bases: BaseModel
Streaming event.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicThinkingConfigAdaptive
¶
Bases: BaseModel
Extended thinking whose depth the model chooses.
display is accepted but ignored: reasoning is always returned.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicThinkingConfigEnabled
¶
Bases: BaseModel
Extended thinking with a fixed token budget.
display is accepted but ignored: reasoning is always returned.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicTool
¶
Bases: BaseModel
Tool definition.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicToolChoice
¶
Bases: BaseModel
Tool Choice definition.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicUsage
¶
Bases: BaseModel
Token usage information.