Home / Function/ sync_client() — anthropic-sdk-python Function Reference

sync_client() — anthropic-sdk-python Function Reference

Architecture documentation for the sync_client() function in vertex.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  8ccc401a_7ecf_0d34_0f3a_8e8dc82ffea9["sync_client()"]
  f25eaed8_f691_5099_97d9_154ca999d282["vertex.py"]
  8ccc401a_7ecf_0d34_0f3a_8e8dc82ffea9 -->|defined in| f25eaed8_f691_5099_97d9_154ca999d282
  style 8ccc401a_7ecf_0d34_0f3a_8e8dc82ffea9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

examples/vertex.py lines 6–21

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())

Subdomains

Defined In

Frequently Asked Questions

What does sync_client() do?
sync_client() is a function in the anthropic-sdk-python codebase, defined in examples/vertex.py.
Where is sync_client() defined?
sync_client() is defined in examples/vertex.py at line 6.

Analyze Your Own Codebase

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

Try Supermodel Free