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_paramCallback
Class●Since v0.14

Callback

Copy
Callback()

Bases

TypedDict

Constructors

Attributes

View source on GitHub
constructor
__init__
NameType
ttl_secondsRequired[int]
urlRequired[str]
attribution_headersSequenceNotStr[str]
full_requestbool
match_hostsSequenceNotStr[str]
request_headersIterable[CallbackRequestHeader]
attribute
ttl_seconds: Required[int]
attribute
url: Required[str]
attribute
attribution_headers: SequenceNotStr[str]

AttributionHeaders selects required all-egress response headers instead of destination credentials; omit match_hosts and full_request, and return expires_at with the headers.

attribute
full_request: bool
attribute
match_hosts: SequenceNotStr[str]
attribute
request_headers: Iterable[CallbackRequestHeader]