LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmith_openapi_clientClientOptions
Interface●Since v0.8

ClientOptions

Copy
interface ClientOptions

Properties

property
apiKey: string | null
property
baseURL: string | null
property
defaultHeaders: HeadersLike

Default headers to include with every request to the API.

These can be removed in individual requests by explicitly setting the header to null in request options.

property
defaultQuery: Record<string, string | undefined>

Default query parameters to include with every request to the API.

These can be removed in individual requests by explicitly setting the param to undefined in request options.

property
fetch: Fetch

Specify a custom fetch function implementation.

If not provided, we expect that fetch is defined globally.

property
fetchOptions: MergedRequestInit
property
logger: Logger
property
logLevel: LogLevel
property
maxRetries: number
property
tenantID: string | null
property
timeout: number
View source on GitHub