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.
-
AnthropicToolChangeDefinition–A tool defined by value in a tool_addition block.
-
AnthropicToolChangeReference–A tool named by a tool_addition or tool_removal block.
-
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
¶
Bases: BaseModel
Message structure.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicMessagesRequest
¶
Bases: BaseModel
Anthropic Messages API request.
Source code in vllm/entrypoints/anthropic/protocol.py
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 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | |
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
AnthropicToolChangeDefinition
¶
Bases: BaseModel
A tool defined by value in a tool_addition block.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicToolChangeReference
¶
AnthropicToolChoice
¶
Bases: BaseModel
Tool Choice definition.
Source code in vllm/entrypoints/anthropic/protocol.py
AnthropicUsage
¶
Bases: BaseModel
Token usage information.