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

AsyncAPIClient

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

Bases

BaseClient[httpx.AsyncClient, AsyncStream[Any]]

Constructors

Methods

Inherited fromBaseClient

Attributes

Amax_retries: intAtimeout: Union[float, Timeout, None]Aqs: QuerystringAcustom_auth: httpx.Auth | None
View source on GitHub
_strict_response_validation
:
bool
,
max_retries
:
int
=
DEFAULT_MAX_RETRIES
,
timeout
:
float
|
Timeout
|
None
|
NotGiven
=
not_given
,
http_client
:
httpx
.
AsyncClient
|
None
=
None
,
custom_headers
:
Mapping
[
str
,
str
]
|
None
=
None
,
custom_query
:
Mapping
[
str
,
object
]
|
None
=
None
)
A
auth_headers
: dict[str, str]
Adefault_headers: dict[str, str | Omit]
Adefault_query: dict[str, object]
Auser_agent: str
Abase_url: URL

Methods

Mplatform_headers
constructor
__init__
NameType
versionstr
base_urlstr | URL
_strict_response_validationbool
max_retriesint
timeoutfloat | Timeout | None | NotGiven
http_clienthttpx.AsyncClient | None
custom_headersMapping[str, str] | None
custom_queryMapping[str, object] | None
method
is_closed
method
close

Close the underlying HTTPX client.

The client will not be usable after this.

method
request
method
get
method
post
method
patch
method
put
method
delete
method
get_api_list