langchain-model-profiles¶
Reference documentation for the langchain-model-profiles package.
Beta package
This package is currently in development and the API is subject to change.
langchain_model_profiles
¶
Model profiles entrypoint.
| FUNCTION | DESCRIPTION |
|---|---|
get_model_profile |
Get the model capabilities for a given model. |
ModelProfile
¶
Bases: TypedDict
Model profile.
image_url_inputs
instance-attribute
¶
image_url_inputs: bool
Whether image URL inputs are supported.
reasoning_output
instance-attribute
¶
reasoning_output: bool
Whether the model supports reasoning / chain-of-thought
structured_output
instance-attribute
¶
structured_output: bool
Whether the model supports a native structured output feature
get_model_profile
¶
get_model_profile(provider: str, model: str) -> ModelProfile | None
Get the model capabilities for a given model.
| PARAMETER | DESCRIPTION |
|---|---|
provider
|
Identifier for provider (e.g.,
TYPE:
|
model
|
Identifier for model (e.g.,
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
ModelProfile | None
|
The model capabilities or |