LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmith_openapi_client_utils_transformPropertyInfo
Classā—Since v0.8

PropertyInfo

Copy
PropertyInfo(
  self,
  *,
  alias: str | None = None,
  format: PropertyFormat | 

Constructors

Attributes

View source on GitHub
None
=
None
,
format_template
:
str
|
None
=
None
,
discriminator
:
str
|
None
=
None
)
constructor
__init__
NameType
aliasstr | None
formatPropertyFormat | None
format_templatestr | None
discriminatorstr | None
attribute
alias: str | None
attribute
format: PropertyFormat | None
attribute
format_template: str | None
attribute
discriminator: str | None

Metadata class to be used in Annotated types to provide information about a given type.

For example:

class MyParams(TypedDict): account_holder_name: Annotated[str, PropertyInfo(alias='accountHolderName')]

This means that {'account_holder_name': 'Robert'} will be transformed to {'accountHolderName': 'Robert'} before being sent to the API.