completion_create_params.py — anthropic-sdk-python Source File
Architecture documentation for completion_create_params.py, a python file in the anthropic-sdk-python codebase. 8 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 71316ac3_9f59_4b57_be15_e422c1f1309b["completion_create_params.py"] c200b525_3039_1d0b_d858_f0f2859bd98e["_types"] 71316ac3_9f59_4b57_be15_e422c1f1309b --> c200b525_3039_1d0b_d858_f0f2859bd98e b20bf822_b103_aa1e_5714_0992f46c51e4["_utils"] 71316ac3_9f59_4b57_be15_e422c1f1309b --> b20bf822_b103_aa1e_5714_0992f46c51e4 0b785e51_9b26_ae4b_cf32_6b73997c2811["model_param.py"] 71316ac3_9f59_4b57_be15_e422c1f1309b --> 0b785e51_9b26_ae4b_cf32_6b73997c2811 95691951_9186_c77d_0461_2a4a1f93938c["metadata_param.py"] 71316ac3_9f59_4b57_be15_e422c1f1309b --> 95691951_9186_c77d_0461_2a4a1f93938c a81c5c45_31d0_b1b7_cd7b_91288590f985["MetadataParam"] 71316ac3_9f59_4b57_be15_e422c1f1309b --> a81c5c45_31d0_b1b7_cd7b_91288590f985 58fe43a9_a1e3_ebc7_6cf1_298c52d556dc["anthropic_beta_param.py"] 71316ac3_9f59_4b57_be15_e422c1f1309b --> 58fe43a9_a1e3_ebc7_6cf1_298c52d556dc 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"] 71316ac3_9f59_4b57_be15_e422c1f1309b --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875 37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"] 71316ac3_9f59_4b57_be15_e422c1f1309b --> 37c05070_ca59_d596_7250_de9d1939227f 2eb1aa7f_c778_4d68_0a26_a102fadd9638["__init__.py"] 2eb1aa7f_c778_4d68_0a26_a102fadd9638 --> 71316ac3_9f59_4b57_be15_e422c1f1309b style 71316ac3_9f59_4b57_be15_e422c1f1309b 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, Union
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
from .._types import SequenceNotStr
from .._utils import PropertyInfo
from .model_param import ModelParam
from .metadata_param import MetadataParam
from .anthropic_beta_param import AnthropicBetaParam
__all__ = [
"CompletionRequestStreamingMetadata",
"CompletionRequestNonStreamingMetadata",
"CompletionRequestNonStreaming",
"CompletionRequestStreaming",
"CompletionCreateParamsBase",
"Metadata",
"CompletionCreateParamsNonStreaming",
"CompletionCreateParamsStreaming",
]
class CompletionCreateParamsBase(TypedDict, total=False):
max_tokens_to_sample: Required[int]
"""The maximum number of tokens to generate before stopping.
Note that our models may stop _before_ reaching this maximum. This parameter
only specifies the absolute maximum number of tokens to generate.
"""
model: Required[ModelParam]
"""
The model that will complete your prompt.\n\nSee
[models](https://docs.anthropic.com/en/docs/models-overview) for additional
details and options.
"""
prompt: Required[str]
"""The prompt that you want Claude to complete.
For proper response generation you will need to format your prompt using
alternating `\n\nHuman:` and `\n\nAssistant:` conversational turns. For example:
```
"\n\nHuman: {userQuestion}\n\nAssistant:"
```
See [prompt validation](https://docs.claude.com/en/api/prompt-validation) and
our guide to [prompt design](https://docs.claude.com/en/docs/intro-to-prompting)
for more details.
"""
metadata: MetadataParam
"""An object describing metadata about the request."""
stop_sequences: SequenceNotStr[str]
"""Sequences that will cause the model to stop generating.
// ... (77 more lines)
Domain
Dependencies
- MetadataParam
- _types
- _utils
- anthropic_beta_param.py
- metadata_param.py
- model_param.py
- typing
- typing_extensions
Imported By
Source
Frequently Asked Questions
What does completion_create_params.py do?
completion_create_params.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does completion_create_params.py depend on?
completion_create_params.py imports 8 module(s): MetadataParam, _types, _utils, anthropic_beta_param.py, metadata_param.py, model_param.py, typing, typing_extensions.
What files import completion_create_params.py?
completion_create_params.py is imported by 1 file(s): __init__.py.
Where is completion_create_params.py in the architecture?
completion_create_params.py is located at src/anthropic/types/completion_create_params.py (domain: AnthropicClient, directory: src/anthropic/types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free