text_completions_demo_sync.py — anthropic-sdk-python Source File
Architecture documentation for text_completions_demo_sync.py, a python file in the anthropic-sdk-python codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c92a4371_65da_f91b_de51_0ed21038c4f6["text_completions_demo_sync.py"] d10c5377_2939_0f0b_cc44_8759393f2853["anthropic"] c92a4371_65da_f91b_de51_0ed21038c4f6 --> d10c5377_2939_0f0b_cc44_8759393f2853 style c92a4371_65da_f91b_de51_0ed21038c4f6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
#!/usr/bin/env -S poetry run python
import anthropic
from anthropic import Anthropic
def main() -> None:
client = Anthropic()
res = client.completions.create(
model="claude-sonnet-4-5-20250929",
prompt=f"{anthropic.HUMAN_PROMPT} how does a court case get to the Supreme Court? {anthropic.AI_PROMPT}",
max_tokens_to_sample=1000,
)
print(res.completion)
main()
Domain
Subdomains
Functions
Dependencies
- anthropic
Source
Frequently Asked Questions
What does text_completions_demo_sync.py do?
text_completions_demo_sync.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 text_completions_demo_sync.py?
text_completions_demo_sync.py defines 1 function(s): main.
What does text_completions_demo_sync.py depend on?
text_completions_demo_sync.py imports 1 module(s): anthropic.
Where is text_completions_demo_sync.py in the architecture?
text_completions_demo_sync.py is located at examples/text_completions_demo_sync.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