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

RuleRewrite

Copy
RuleRewrite()

Bases

BaseModel

Attributes

Inherited fromBaseModel

Attributes

Amodel_fields_set: set[str]Amodel_config: ConfigDictAmodel_construct: construct

Methods

Mto_dict
—

Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

View source on GitHub
Mto_json
—

Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation).

Mconstruct
Mmodel_dump
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump

Mmodel_dump_json
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json

Classes

CConfig
attribute
port: int
attribute
credentials: Optional[Literal['strip', 'redact', 'keep']]
attribute
host: Optional[str]
attribute
sandbox: Optional[str]

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.

Host is an HTTPS destination. Exactly one of host and sandbox is set.

Sandbox is the name or ID of a sandbox to send requests to, over plain HTTP.

A sandbox link from this sandbox to that sandbox's port must exist. Exactly one of host and sandbox is set.