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

batch_create_params.py — anthropic-sdk-python Source File

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

File python AnthropicClient 5 imports 1 dependents 2 classes

Entity Profile

Dependency Diagram

graph LR
  ed503e4f_0bc1_59de_c2d9_63682a9ccceb["batch_create_params.py"]
  088f224f_e696_f788_754a_81acc469d929["_utils"]
  ed503e4f_0bc1_59de_c2d9_63682a9ccceb --> 088f224f_e696_f788_754a_81acc469d929
  40390f59_8224_a68c_3056_4576703f1ad7["anthropic_beta_param"]
  ed503e4f_0bc1_59de_c2d9_63682a9ccceb --> 40390f59_8224_a68c_3056_4576703f1ad7
  546f0a19_67b6_0567_b676_4b6a780e4243["message_create_params"]
  ed503e4f_0bc1_59de_c2d9_63682a9ccceb --> 546f0a19_67b6_0567_b676_4b6a780e4243
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  ed503e4f_0bc1_59de_c2d9_63682a9ccceb --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"]
  ed503e4f_0bc1_59de_c2d9_63682a9ccceb --> 37c05070_ca59_d596_7250_de9d1939227f
  dbe014d2_4baa_ad50_d7ad_0a355aa14a48["__init__.py"]
  dbe014d2_4baa_ad50_d7ad_0a355aa14a48 --> ed503e4f_0bc1_59de_c2d9_63682a9ccceb
  style ed503e4f_0bc1_59de_c2d9_63682a9ccceb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import List, Iterable
from typing_extensions import Required, Annotated, TypedDict

from ...._utils import PropertyInfo
from ...anthropic_beta_param import AnthropicBetaParam
from ..message_create_params import MessageCreateParamsNonStreaming

__all__ = ["BatchCreateParams", "Request"]


class BatchCreateParams(TypedDict, total=False):
    requests: Required[Iterable[Request]]
    """List of requests for prompt completion.

    Each is an individual request to create a Message.
    """

    betas: Annotated[List[AnthropicBetaParam], PropertyInfo(alias="anthropic-beta")]
    """Optional header to specify the beta version(s) you want to use."""



class Request(TypedDict, total=False):
    custom_id: Required[str]
    """Developer-provided ID created for each request in a Message Batch.

    Useful for matching results to requests, as results may be given out of request
    order.

    Must be unique for each request within the Message Batch.
    """

    params: Required[MessageCreateParamsNonStreaming]
    """Messages API creation parameters for the individual request.

    See the [Messages API reference](https://docs.claude.com/en/api/messages) for
    full documentation on available parameters.
    """

Dependencies

  • _utils
  • anthropic_beta_param
  • message_create_params
  • typing
  • typing_extensions

Frequently Asked Questions

What does batch_create_params.py do?
batch_create_params.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does batch_create_params.py depend on?
batch_create_params.py imports 5 module(s): _utils, anthropic_beta_param, message_create_params, typing, typing_extensions.
What files import batch_create_params.py?
batch_create_params.py is imported by 1 file(s): __init__.py.
Where is batch_create_params.py in the architecture?
batch_create_params.py is located at src/anthropic/types/beta/messages/batch_create_params.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