Home / File/ beta_message_batch.py — anthropic-sdk-python Source File

beta_message_batch.py — anthropic-sdk-python Source File

Architecture documentation for beta_message_batch.py, a python file in the anthropic-sdk-python codebase. 6 imports, 1 dependents.

File python AnthropicClient 6 imports 1 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  827e58dc_dae3_0aa6_4b86_250116317ec8["beta_message_batch.py"]
  62a94a20_126a_1542_7e5c_58d90847381e["_models"]
  827e58dc_dae3_0aa6_4b86_250116317ec8 --> 62a94a20_126a_1542_7e5c_58d90847381e
  09edf2df_0b1a_51e3_10bb_e8a02542865a["beta_message_batch_request_counts.py"]
  827e58dc_dae3_0aa6_4b86_250116317ec8 --> 09edf2df_0b1a_51e3_10bb_e8a02542865a
  8a301eb2_6582_7884_9a46_a93619bb38a1["BetaMessageBatchRequestCounts"]
  827e58dc_dae3_0aa6_4b86_250116317ec8 --> 8a301eb2_6582_7884_9a46_a93619bb38a1
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  827e58dc_dae3_0aa6_4b86_250116317ec8 --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  7e1d14c5_475e_409c_7c4e_1274f9d40aa9["datetime"]
  827e58dc_dae3_0aa6_4b86_250116317ec8 --> 7e1d14c5_475e_409c_7c4e_1274f9d40aa9
  37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"]
  827e58dc_dae3_0aa6_4b86_250116317ec8 --> 37c05070_ca59_d596_7250_de9d1939227f
  dbe014d2_4baa_ad50_d7ad_0a355aa14a48["__init__.py"]
  dbe014d2_4baa_ad50_d7ad_0a355aa14a48 --> 827e58dc_dae3_0aa6_4b86_250116317ec8
  style 827e58dc_dae3_0aa6_4b86_250116317ec8 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 .beta_message_batch_request_counts import BetaMessageBatchRequestCounts

__all__ = ["BetaMessageBatch"]


class BetaMessageBatch(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: BetaMessageBatchRequestCounts
    """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"`.
    """

Dependencies

Frequently Asked Questions

What does beta_message_batch.py do?
beta_message_batch.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does beta_message_batch.py depend on?
beta_message_batch.py imports 6 module(s): BetaMessageBatchRequestCounts, _models, beta_message_batch_request_counts.py, datetime, typing, typing_extensions.
What files import beta_message_batch.py?
beta_message_batch.py is imported by 1 file(s): __init__.py.
Where is beta_message_batch.py in the architecture?
beta_message_batch.py is located at src/anthropic/types/beta/messages/beta_message_batch.py (domain: AnthropicClient, directory: src/anthropic/types/beta/messages).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free