Skip to main content
Ctrl+K
🦜🔗 LangChain  documentation - Home 🦜🔗 LangChain  documentation - Home
  • Reference
Ctrl+K
Docs
  • GitHub
  • X / Twitter
Ctrl+K
  • Reference
Docs
  • GitHub
  • X / Twitter

Section Navigation

Base packages

  • Core
  • Langchain
  • Text Splitters
  • Community
  • Experimental
    • agents
    • autonomous_agents
      • AutoGPT
      • AutoGPTMemory
      • AutoGPTAction
      • AutoGPTOutputParser
      • BaseAutoGPTOutputParser
      • AutoGPTPrompt
      • PromptGenerator
      • BabyAGI
      • TaskCreationChain
      • TaskExecutionChain
      • TaskPrioritizationChain
      • HuggingGPT
      • ResponseGenerationChain
      • ResponseGenerator
      • Task
      • TaskExecutor
      • BasePlanner
      • Plan
      • PlanningOutputParser
      • Step
      • TaskPlaningChain
      • TaskPlanner
      • preprocess_json_input
      • get_prompt
      • load_response_generator
      • load_chat_planner
    • chat_models
    • comprehend_moderation
    • cpal
    • data_anonymizer
    • fallacy_removal
    • generative_agents
    • graph_transformers
    • llm_bash
    • llm_symbolic_math
    • llms
    • open_clip
    • pal_chain
    • plan_and_execute
    • prompt_injection_identifier
    • recommenders
    • retrievers
    • rl_chain
    • smart_llm
    • sql
    • tabular_synthetic_data
    • text_splitter
    • tools
    • tot
    • utilities
    • video_captioning

Integrations

  • AI21
  • Anthropic
  • AstraDB
  • AWS
  • Azure Ai
  • Azure Dynamic Sessions
  • Cerebras
  • Chroma
  • Cohere
  • Deepseek
  • Elasticsearch
  • Exa
  • Fireworks
  • Google Community
  • Google GenAI
  • Google VertexAI
  • Groq
  • Huggingface
  • IBM
  • Milvus
  • MistralAI
  • MongoDB
  • Neo4J
  • Nomic
  • Nvidia Ai Endpoints
  • Ollama
  • OpenAI
  • Perplexity
  • Pinecone
  • Postgres
  • Prompty
  • Qdrant
  • Redis
  • Sema4
  • Snowflake
  • Sqlserver
  • Standard Tests
  • Tavily
  • Together
  • Unstructured
  • Upstage
  • VoyageAI
  • Weaviate
  • XAI
  • LangChain Python API Reference
  • langchain-experimental: 0.3.5rc1
  • autonomous_agents
  • HuggingGPT

HuggingGPT#

class langchain_experimental.autonomous_agents.hugginggpt.hugginggpt.HuggingGPT(
llm: BaseLanguageModel,
tools: List[BaseTool],
)[source]#

Agent for interacting with HuggingGPT.

Methods

__init__(llm, tools)

run(input)

Parameters:
  • llm (BaseLanguageModel)

  • tools (List[BaseTool])

__init__(
llm: BaseLanguageModel,
tools: List[BaseTool],
)[source]#
Parameters:
  • llm (BaseLanguageModel)

  • tools (List[BaseTool])

run(input: str) → str[source]#
Parameters:

input (str)

Return type:

str

On this page
  • HuggingGPT
    • __init__()
    • run()

© Copyright 2025, LangChain Inc.