Mcpixir.Application (Mcpixir v0.1.0)
View SourceApplication module for Mcpixir that handles LangChain integration and other application-level concerns.
Summary
Functions
Gets the Anthropic module if available.
Formats messages for LangChain integration. Safely handles the conversion, falling back to the original messages if LangChain is unavailable.
Checks if LangChain integration is available. Always use this function instead of directly checking Code.ensure_loaded.
Gets the LangChain models module if available.
Load optional dependencies like LangChain
Gets the OpenAI module if available.
Functions
Gets the Anthropic module if available.
Formats messages for LangChain integration. Safely handles the conversion, falling back to the original messages if LangChain is unavailable.
Checks if LangChain integration is available. Always use this function instead of directly checking Code.ensure_loaded.
Gets the LangChain models module if available.
Load optional dependencies like LangChain
Returns a boolean indicating whether LangChain is available.
Gets the OpenAI module if available.