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

vertex.py — anthropic-sdk-python Source File

Architecture documentation for vertex.py, a python file in the anthropic-sdk-python codebase. 2 imports, 0 dependents.

File python AnthropicClient SyncAPI 2 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  f25eaed8_f691_5099_97d9_154ca999d282["vertex.py"]
  22e54b11_c61c_96dc_bf33_dfc7151750e9["asyncio"]
  f25eaed8_f691_5099_97d9_154ca999d282 --> 22e54b11_c61c_96dc_bf33_dfc7151750e9
  d10c5377_2939_0f0b_cc44_8759393f2853["anthropic"]
  f25eaed8_f691_5099_97d9_154ca999d282 --> d10c5377_2939_0f0b_cc44_8759393f2853
  style f25eaed8_f691_5099_97d9_154ca999d282 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import asyncio

from anthropic import AnthropicVertex, AsyncAnthropicVertex


def sync_client() -> None:
    print("------ Sync Vertex ------")

    client = AnthropicVertex()

    message = client.messages.create(
        model="claude-sonnet-4@20250514",
        max_tokens=100,
        messages=[
            {
                "role": "user",
                "content": "Hello!",
            }
        ],
    )
    print(message.to_json())


async def async_client() -> None:
    print("------ Async Vertex ------")

    client = AsyncAnthropicVertex()

    message = await client.messages.create(
        model="claude-sonnet-4@20250514",
        max_tokens=1024,
        messages=[
            {
                "role": "user",
                "content": "Hello!",
            }
        ],
    )
    print(message.to_json())


sync_client()
asyncio.run(async_client())

Subdomains

Dependencies

  • anthropic
  • asyncio

Frequently Asked Questions

What does vertex.py do?
vertex.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain, SyncAPI subdomain.
What functions are defined in vertex.py?
vertex.py defines 2 function(s): async_client, sync_client.
What does vertex.py depend on?
vertex.py imports 2 module(s): anthropic, asyncio.
Where is vertex.py in the architecture?
vertex.py is located at examples/vertex.py (domain: AnthropicClient, subdomain: SyncAPI, directory: examples).

Analyze Your Own Codebase

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

Try Supermodel Free