LangChainToolingConfiguration class
Configuration for LangChain tooling extension package. Inherits all tooling and runtime settings.
Why This Class Exists
Although this class currently adds no new settings beyond what ToolingConfiguration provides, it exists for several important reasons:
Type Safety: Allows LangChain-specific services to declare their dependency on
IConfigurationProvider<LangChainToolingConfiguration>, making the configuration contract explicit and enabling compile-time checking.Extension Point: Provides a clear place to add LangChain-specific settings (e.g., graph execution timeouts, checkpoint intervals, memory limits) without breaking existing code when those needs arise.
Consistent Pattern: Maintains symmetry with other extension packages (Claude, OpenAI), making the SDK easier to understand and navigate.
Dependency Injection: Services can be designed to accept this specific configuration type, enabling proper IoC patterns and testability.
Example
// Service declares explicit dependency on LangChain configuration
class LangChainService {
constructor(private configProvider: IConfigurationProvider<LangChainToolingConfiguration>) {}
}
// Future: Add LangChain-specific settings without breaking changes
class LangChainToolingConfiguration extends ToolingConfiguration {
get graphExecutionTimeout(): number { ... }
}
- Extends
Properties
| cluster |
|
| is |
Whether the cluster is a development environment (local or dev). Based on clusterCategory. |
| is |
Whether NODE_ENV indicates development mode. Returns true when NODE_ENV is 'development' (case-insensitive). This is the standard Node.js way of indicating development mode. |
| mcp |
Gets the MCP platform authentication scope. Used by AgenticAuthenticationService for token exchange. Trims whitespace to prevent token exchange failures. |
| mcp |
|
| use |
Whether to use the ToolingManifest.json file instead of gateway discovery. Returns true when NODE_ENV is set to 'development' (case-insensitive), or when explicitly overridden via configuration. |
Inherited Methods
| parse |
Parse an environment variable as a boolean. Recognizes 'true', '1', 'yes', 'on' (case-insensitive) as true; all other values as false. |
| parse |
Parse an environment variable as an integer, returning fallback if invalid or not set. |
Constructor Details
LangChainToolingConfiguration(ToolingConfigurationOptions)
new LangChainToolingConfiguration(overrides?: ToolingConfigurationOptions)
Parameters
- overrides
- ToolingConfigurationOptions
Property Details
clusterCategory
isDevelopmentEnvironment
Whether the cluster is a development environment (local or dev). Based on clusterCategory.
boolean isDevelopmentEnvironment
Property Value
boolean
isNodeEnvDevelopment
Whether NODE_ENV indicates development mode. Returns true when NODE_ENV is 'development' (case-insensitive). This is the standard Node.js way of indicating development mode.
boolean isNodeEnvDevelopment
Property Value
boolean
mcpPlatformAuthenticationScope
Gets the MCP platform authentication scope. Used by AgenticAuthenticationService for token exchange. Trims whitespace to prevent token exchange failures.
string mcpPlatformAuthenticationScope
Property Value
string
mcpPlatformEndpoint
string mcpPlatformEndpoint
Property Value
string
useToolingManifest
Whether to use the ToolingManifest.json file instead of gateway discovery. Returns true when NODE_ENV is set to 'development' (case-insensitive), or when explicitly overridden via configuration.
boolean useToolingManifest
Property Value
boolean
Inherited Method Details
parseEnvBoolean(undefined | string)
Parse an environment variable as a boolean. Recognizes 'true', '1', 'yes', 'on' (case-insensitive) as true; all other values as false.
static function parseEnvBoolean(envValue: undefined | string): boolean
Parameters
- envValue
-
undefined | string
Returns
boolean
Inherited From ToolingConfiguration.parseEnvBoolean
parseEnvInt(undefined | string, number)
Parse an environment variable as an integer, returning fallback if invalid or not set.
static function parseEnvInt(envValue: undefined | string, fallback: number): number
Parameters
- envValue
-
undefined | string
- fallback
-
number
Returns
number
Inherited From ToolingConfiguration.parseEnvInt