mcp-use TypeScript API
    Preparing search index...

    Function parseLLMStringToProviderConfig

    @mcp-use/agent — Native cross-platform MCP agent.

    Inspector → MCPAgent → loop → raw fetch + @mcp-use/client. LangChain integration lives in @mcp-use/agent/langchain.

    • Parses a "provider/model" identifier into a provider configuration.

      Parameters

      • llmString: string

        Provider and model separated by the first slash.

      • Optionalconfig: NativeLLMConfig

        Optional credentials and request overrides.

      Returns ProviderConfig

      A complete provider configuration.

      Error if the identifier is invalid, the provider is unsupported, or no required API key is available.