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

Section Navigation

Base packages

  • Core
  • Langchain
  • Text Splitters
  • Community
  • Experimental
    • agents
    • autonomous_agents
    • 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
      • PythonAstREPLTool
      • PythonInputs
      • PythonREPLTool
      • sanitize_input
    • tot
    • utilities
    • video_captioning

Integrations

  • AI21
  • Airbyte
  • Anthropic
  • AstraDB
  • AWS
  • Azure Dynamic Sessions
  • Chroma
  • Cohere
  • Couchbase
  • Elasticsearch
  • Exa
  • Fireworks
  • Google Community
  • Google GenAI
  • Google VertexAI
  • Groq
  • Huggingface
  • Milvus
  • MistralAI
  • MongoDB
  • Nomic
  • Nvidia Ai Endpoints
  • Ollama
  • OpenAI
  • Pinecone
  • Postgres
  • Prompty
  • Qdrant
  • Robocorp
  • Together
  • Unstructured
  • VoyageAI
  • Weaviate
  • LangChain Python API Reference
  • langchain-experimental: 0.0.64

tools#

Experimental Python REPL tools.

Classes

tools.python.tool.PythonAstREPLTool

Tool for running python code in a REPL.

tools.python.tool.PythonInputs

Python inputs.

tools.python.tool.PythonREPLTool

Tool for running python code in a REPL.

Functions

tools.python.tool.sanitize_input(query)

Sanitize input to the python REPL.

© Copyright 2023, LangChain Inc.