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

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithtypesproxy_config_paramRuleRewritecredentials
Attribute●Since v0.14

credentials

Copy
credentials: Literal['strip', 'redact', 'keep']
View source on GitHub

Credentials is what happens to credential headers the sandbox sent, such as Authorization and Cookie: "strip" (the default) removes them, "redact" keeps each with its value replaced by "redacted" (after an auth scheme such as "Bearer "), and "keep" forwards them unchanged.