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_base_clientBaseClient
Class●Since v0.8

BaseClient

Copy
BaseClient(
  self,
  *,
  version: str,
  base_url: str | URL,
  

Bases

Generic[_HttpxClientT, _DefaultStreamT]

Constructors

Attributes

Methods

View source on GitHub
_strict_response_validation
:
bool
,
max_retries
:
int
=
DEFAULT_MAX_RETRIES
,
timeout
:
float
|
Timeout
|
None
=
DEFAULT_TIMEOUT
,
custom_headers
:
Mapping
[
str
,
str
]
|
None
=
None
,
custom_query
:
Mapping
[
str
,
object
]
|
None
=
None
)
constructor
__init__
NameType
versionstr
base_urlstr | URL
_strict_response_validationbool
max_retriesint
timeoutfloat | Timeout | None
custom_headersMapping[str, str] | None
custom_queryMapping[str, object] | None
attribute
max_retries: int
attribute
timeout: Union[float, Timeout, None]
attribute
qs: Querystring
attribute
custom_auth: httpx.Auth | None
attribute
auth_headers: dict[str, str]
attribute
default_headers: dict[str, str | Omit]
attribute
default_query: dict[str, object]
attribute
user_agent: str
attribute
base_url: URL
method
platform_headers