Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAlpha VantageApifyArXivAWS LambdaShell (bash)Bearly Code InterpreterBing SearchBrave SearchChatGPT PluginsDall-E Image GeneratorDataForSeoDuckDuckGo SearchEden AIEleven Labs Text2SpeechFile SystemGolden QueryGoogle DriveGoogle PlacesGoogle SearchGoogle SerperGradioGraphQLHuggingFace Hub ToolsHuman as a toolIFTTT WebHooksLemon AgentMetaphor SearchNuclia UnderstandingOpenWeatherMapPubMedRequestsSceneXplainSearch ToolsSearchApiSearxNG SearchSerpAPITwilioWikipediaWolfram AlphaYahoo Finance NewsYouTubeZapier Natural Language ActionsAgents and toolkitsMemoryCallbacksChat loadersComponentsToolsChatGPT PluginsChatGPT PluginsThis example shows how to use ChatGPT Plugins within LangChain abstractions.Note 1: This currently only works for plugins with no auth.Note 2: There are almost certainly other ways to do this, this is just a first pass. If you have better ideas, please open a PR!from langchain.chat_models import ChatOpenAIfrom langchain.agents import load_tools, initialize_agentfrom langchain.agents import AgentTypefrom langchain.tools import AIPluginTooltool = AIPluginTool.from_plugin_url("https://www.klarna.com/.well-known/ai-plugin.json")llm = ChatOpenAI(temperature=0)tools = load_tools(["requests_all"])tools += [tool]agent_chain = initialize_agent(    tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)agent_chain.run("what t shirts are available in klarna?")            > Entering new AgentExecutor chain...    I need to check the Klarna Shopping API to see if it has information on available t shirts.    Action: KlarnaProducts    Action Input: None    Observation: Usage Guide: Use the Klarna plugin to get relevant product suggestions for any shopping or researching purpose.
This example shows how to use ChatGPT Plugins within LangChain abstractions.
This example shows how to use ChatGPT Plugins within LangChain abstractions. ->: Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAlpha VantageApifyArXivAWS LambdaShell (bash)Bearly Code InterpreterBing SearchBrave SearchChatGPT PluginsDall-E Image GeneratorDataForSeoDuckDuckGo SearchEden AIEleven Labs Text2SpeechFile SystemGolden QueryGoogle DriveGoogle PlacesGoogle SearchGoogle SerperGradioGraphQLHuggingFace Hub ToolsHuman as a toolIFTTT WebHooksLemon AgentMetaphor SearchNuclia UnderstandingOpenWeatherMapPubMedRequestsSceneXplainSearch ToolsSearchApiSearxNG SearchSerpAPITwilioWikipediaWolfram AlphaYahoo Finance NewsYouTubeZapier Natural Language ActionsAgents and toolkitsMemoryCallbacksChat loadersComponentsToolsChatGPT PluginsChatGPT PluginsThis example shows how to use ChatGPT Plugins within LangChain abstractions.Note 1: This currently only works for plugins with no auth.Note 2: There are almost certainly other ways to do this, this is just a first pass. If you have better ideas, please open a PR!from langchain.chat_models import ChatOpenAIfrom langchain.agents import load_tools, initialize_agentfrom langchain.agents import AgentTypefrom langchain.tools import AIPluginTooltool = AIPluginTool.from_plugin_url("https://www.klarna.com/.well-known/ai-plugin.json")llm = ChatOpenAI(temperature=0)tools = load_tools(["requests_all"])tools += [tool]agent_chain = initialize_agent(    tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)agent_chain.run("what t shirts are available in klarna?")            > Entering new AgentExecutor chain...    I need to check the Klarna Shopping API to see if it has information on available t shirts.    Action: KlarnaProducts    Action Input: None    Observation: Usage Guide: Use the Klarna plugin to get relevant product suggestions for any shopping or researching purpose.