Share via


@microsoft/agents-a365-tooling-extensions-langchain package

Classes

LangChainToolingConfiguration

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:

  1. Type Safety: Allows LangChain-specific services to declare their dependency on IConfigurationProvider<LangChainToolingConfiguration>, making the configuration contract explicit and enabling compile-time checking.

  2. 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.

  3. Consistent Pattern: Maintains symmetry with other extension packages (Claude, OpenAI), making the SDK easier to understand and navigate.

  4. 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 { ... }
}
McpToolRegistrationService

Discover MCP servers and list tools formatted for the LangChain Orchestrator. Uses listToolServers to fetch server configs and getTools to enumerate tools.

Also provides methods to send chat history to the MCP platform for real-time threat protection (RTP) analysis.

Type Aliases

LangChainToolingConfigurationOptions

LangChain tooling configuration options - extends tooling options. All overrides are functions called on each property access.

Currently no additional settings; this type exists for future extensibility.

Variables

defaultLangChainToolingConfigurationProvider

Shared default provider for LangChainToolingConfiguration.

Variable Details

defaultLangChainToolingConfigurationProvider

Shared default provider for LangChainToolingConfiguration.

defaultLangChainToolingConfigurationProvider: DefaultConfigurationProvider<LangChainToolingConfiguration>

Type