message_batch.py — anthropic-sdk-python Source File
Architecture documentation for message_batch.py, a python file in the anthropic-sdk-python codebase. 6 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 553ff8b4_6e07_4580_d3f3_a05016158a35["message_batch.py"] 9964e1d1_1aca_7a46_b342_dc381bef3637["_models"] 553ff8b4_6e07_4580_d3f3_a05016158a35 --> 9964e1d1_1aca_7a46_b342_dc381bef3637 ebf0e6ff_69b5_809c_13f5_cd1003a04ce3["message_batch_request_counts.py"] 553ff8b4_6e07_4580_d3f3_a05016158a35 --> ebf0e6ff_69b5_809c_13f5_cd1003a04ce3 f73a5b16_f172_25b4_cd1a_4d39331feb8a["MessageBatchRequestCounts"] 553ff8b4_6e07_4580_d3f3_a05016158a35 --> f73a5b16_f172_25b4_cd1a_4d39331feb8a 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"] 553ff8b4_6e07_4580_d3f3_a05016158a35 --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875 7e1d14c5_475e_409c_7c4e_1274f9d40aa9["datetime"] 553ff8b4_6e07_4580_d3f3_a05016158a35 --> 7e1d14c5_475e_409c_7c4e_1274f9d40aa9 37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"] 553ff8b4_6e07_4580_d3f3_a05016158a35 --> 37c05070_ca59_d596_7250_de9d1939227f 9d57e64b_b1ec_715b_1768_07fcedee07a0["__init__.py"] 9d57e64b_b1ec_715b_1768_07fcedee07a0 --> 553ff8b4_6e07_4580_d3f3_a05016158a35 style 553ff8b4_6e07_4580_d3f3_a05016158a35 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from datetime import datetime
from typing_extensions import Literal
from ..._models import BaseModel
from .message_batch_request_counts import MessageBatchRequestCounts
__all__ = ["MessageBatch"]
class MessageBatch(BaseModel):
id: str
"""Unique object identifier.
The format and length of IDs may change over time.
"""
archived_at: Optional[datetime] = None
"""
RFC 3339 datetime string representing the time at which the Message Batch was
archived and its results became unavailable.
"""
cancel_initiated_at: Optional[datetime] = None
"""
RFC 3339 datetime string representing the time at which cancellation was
initiated for the Message Batch. Specified only if cancellation was initiated.
"""
created_at: datetime
"""
RFC 3339 datetime string representing the time at which the Message Batch was
created.
"""
ended_at: Optional[datetime] = None
"""
RFC 3339 datetime string representing the time at which processing for the
Message Batch ended. Specified only once processing ends.
Processing ends when every request in a Message Batch has either succeeded,
errored, canceled, or expired.
"""
expires_at: datetime
"""
RFC 3339 datetime string representing the time at which the Message Batch will
expire and end processing, which is 24 hours after creation.
"""
processing_status: Literal["in_progress", "canceling", "ended"]
"""Processing status of the Message Batch."""
request_counts: MessageBatchRequestCounts
"""Tallies requests within the Message Batch, categorized by their status.
Requests start as `processing` and move to one of the other statuses only once
processing of the entire batch ends. The sum of all values always matches the
total number of requests in the batch.
"""
results_url: Optional[str] = None
"""URL to a `.jsonl` file containing the results of the Message Batch requests.
Specified only once processing ends.
Results in the file are not guaranteed to be in the same order as requests. Use
the `custom_id` field to match results to requests.
"""
type: Literal["message_batch"]
"""Object type.
For Message Batches, this is always `"message_batch"`.
"""
Domain
Classes
Dependencies
- MessageBatchRequestCounts
- _models
- datetime
- message_batch_request_counts.py
- typing
- typing_extensions
Imported By
Source
Frequently Asked Questions
What does message_batch.py do?
message_batch.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does message_batch.py depend on?
message_batch.py imports 6 module(s): MessageBatchRequestCounts, _models, datetime, message_batch_request_counts.py, typing, typing_extensions.
What files import message_batch.py?
message_batch.py is imported by 1 file(s): __init__.py.
Where is message_batch.py in the architecture?
message_batch.py is located at src/anthropic/types/messages/message_batch.py (domain: AnthropicClient, directory: src/anthropic/types/messages).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free