.. experimental_api_reference: ======================= ``langchain_experimental`` API Reference ======================= :mod:`langchain_experimental.agents` ===================================== .. automodule:: langchain_experimental.agents :no-members: :no-inherited-members: Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: agents :template: function.rst agents.agent_toolkits.csv.base.create_csv_agent agents.agent_toolkits.pandas.base.create_pandas_dataframe_agent agents.agent_toolkits.python.base.create_python_agent agents.agent_toolkits.spark.base.create_spark_dataframe_agent agents.agent_toolkits.xorbits.base.create_xorbits_agent :mod:`langchain_experimental.autonomous_agents` ================================================ .. automodule:: langchain_experimental.autonomous_agents :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: autonomous_agents :template: class.rst autonomous_agents.autogpt.agent.AutoGPT :template: pydantic.rst autonomous_agents.autogpt.memory.AutoGPTMemory :template: class.rst autonomous_agents.autogpt.output_parser.AutoGPTAction :template: pydantic.rst autonomous_agents.autogpt.output_parser.AutoGPTOutputParser :template: pydantic.rst autonomous_agents.autogpt.output_parser.BaseAutoGPTOutputParser :template: pydantic.rst autonomous_agents.autogpt.prompt.AutoGPTPrompt :template: class.rst autonomous_agents.autogpt.prompt_generator.PromptGenerator :template: pydantic.rst autonomous_agents.baby_agi.baby_agi.BabyAGI :template: pydantic.rst autonomous_agents.baby_agi.task_creation.TaskCreationChain :template: pydantic.rst autonomous_agents.baby_agi.task_execution.TaskExecutionChain :template: pydantic.rst autonomous_agents.baby_agi.task_prioritization.TaskPrioritizationChain :template: class.rst autonomous_agents.hugginggpt.hugginggpt.HuggingGPT :template: pydantic.rst autonomous_agents.hugginggpt.repsonse_generator.ResponseGenerationChain :template: class.rst autonomous_agents.hugginggpt.repsonse_generator.ResponseGenerator :template: class.rst autonomous_agents.hugginggpt.task_executor.Task :template: class.rst autonomous_agents.hugginggpt.task_executor.TaskExecutor :template: pydantic.rst autonomous_agents.hugginggpt.task_planner.BasePlanner :template: class.rst autonomous_agents.hugginggpt.task_planner.Plan :template: pydantic.rst autonomous_agents.hugginggpt.task_planner.PlanningOutputParser :template: class.rst autonomous_agents.hugginggpt.task_planner.Step :template: pydantic.rst autonomous_agents.hugginggpt.task_planner.TaskPlaningChain :template: pydantic.rst autonomous_agents.hugginggpt.task_planner.TaskPlanner Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: autonomous_agents :template: function.rst autonomous_agents.autogpt.output_parser.preprocess_json_input autonomous_agents.autogpt.prompt_generator.get_prompt autonomous_agents.hugginggpt.repsonse_generator.load_response_generator autonomous_agents.hugginggpt.task_planner.load_chat_planner :mod:`langchain_experimental.chat_models` ========================================== .. automodule:: langchain_experimental.chat_models :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: chat_models :template: pydantic.rst chat_models.llm_wrapper.ChatWrapper :template: pydantic.rst chat_models.llm_wrapper.Llama2Chat :template: pydantic.rst chat_models.llm_wrapper.Orca :template: pydantic.rst chat_models.llm_wrapper.Vicuna :mod:`langchain_experimental.comprehend_moderation` ==================================================== .. automodule:: langchain_experimental.comprehend_moderation :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: comprehend_moderation :template: pydantic.rst comprehend_moderation.amazon_comprehend_moderation.AmazonComprehendModerationChain :template: class.rst comprehend_moderation.base_moderation.BaseModeration :template: class.rst comprehend_moderation.base_moderation_callbacks.BaseModerationCallbackHandler :template: pydantic.rst comprehend_moderation.base_moderation_config.BaseModerationConfig :template: pydantic.rst comprehend_moderation.base_moderation_config.ModerationPiiConfig :template: pydantic.rst comprehend_moderation.base_moderation_config.ModerationPromptSafetyConfig :template: pydantic.rst comprehend_moderation.base_moderation_config.ModerationToxicityConfig :template: class.rst comprehend_moderation.base_moderation_exceptions.ModerationPiiError :template: class.rst comprehend_moderation.base_moderation_exceptions.ModerationPromptSafetyError :template: class.rst comprehend_moderation.base_moderation_exceptions.ModerationToxicityError :template: class.rst comprehend_moderation.pii.ComprehendPII :template: class.rst comprehend_moderation.prompt_safety.ComprehendPromptSafety :template: class.rst comprehend_moderation.toxicity.ComprehendToxicity :mod:`langchain_experimental.cpal` =================================== .. automodule:: langchain_experimental.cpal :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: cpal :template: pydantic.rst cpal.base.CPALChain :template: pydantic.rst cpal.base.CausalChain :template: pydantic.rst cpal.base.InterventionChain :template: pydantic.rst cpal.base.NarrativeChain :template: pydantic.rst cpal.base.QueryChain :template: enum.rst cpal.constants.Constant :template: pydantic.rst cpal.models.CausalModel :template: pydantic.rst cpal.models.EntityModel :template: pydantic.rst cpal.models.EntitySettingModel :template: pydantic.rst cpal.models.InterventionModel :template: pydantic.rst cpal.models.NarrativeModel :template: pydantic.rst cpal.models.QueryModel :template: pydantic.rst cpal.models.ResultModel :template: pydantic.rst cpal.models.StoryModel :template: pydantic.rst cpal.models.SystemSettingModel :mod:`langchain_experimental.data_anonymizer` ============================================== .. automodule:: langchain_experimental.data_anonymizer :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: data_anonymizer :template: class.rst data_anonymizer.base.AnonymizerBase :template: class.rst data_anonymizer.base.ReversibleAnonymizerBase :template: class.rst data_anonymizer.deanonymizer_mapping.DeanonymizerMapping :template: class.rst data_anonymizer.presidio.PresidioAnonymizer :template: class.rst data_anonymizer.presidio.PresidioAnonymizerBase :template: class.rst data_anonymizer.presidio.PresidioReversibleAnonymizer Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: data_anonymizer :template: function.rst data_anonymizer.deanonymizer_mapping.create_anonymizer_mapping data_anonymizer.deanonymizer_mapping.format_duplicated_operator data_anonymizer.deanonymizer_matching_strategies.case_insensitive_matching_strategy data_anonymizer.deanonymizer_matching_strategies.combined_exact_fuzzy_matching_strategy data_anonymizer.deanonymizer_matching_strategies.exact_matching_strategy data_anonymizer.deanonymizer_matching_strategies.fuzzy_matching_strategy data_anonymizer.deanonymizer_matching_strategies.ngram_fuzzy_matching_strategy data_anonymizer.faker_presidio_mapping.get_pseudoanonymizer_mapping :mod:`langchain_experimental.fallacy_removal` ============================================== .. automodule:: langchain_experimental.fallacy_removal :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: fallacy_removal :template: pydantic.rst fallacy_removal.base.FallacyChain :template: pydantic.rst fallacy_removal.models.LogicalFallacy :mod:`langchain_experimental.generative_agents` ================================================ .. automodule:: langchain_experimental.generative_agents :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: generative_agents :template: pydantic.rst generative_agents.generative_agent.GenerativeAgent :template: pydantic.rst generative_agents.memory.GenerativeAgentMemory :mod:`langchain_experimental.graph_transformers` ================================================= .. automodule:: langchain_experimental.graph_transformers :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: graph_transformers :template: class.rst graph_transformers.diffbot.DiffbotGraphTransformer :template: class.rst graph_transformers.diffbot.NodesList :template: class.rst graph_transformers.diffbot.SimplifiedSchema Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: graph_transformers :template: function.rst graph_transformers.diffbot.format_property_key :mod:`langchain_experimental.llm_bash` ======================================= .. automodule:: langchain_experimental.llm_bash :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: llm_bash :template: pydantic.rst llm_bash.base.LLMBashChain :template: class.rst llm_bash.bash.BashProcess :template: pydantic.rst llm_bash.prompt.BashOutputParser :mod:`langchain_experimental.llm_symbolic_math` ================================================ .. automodule:: langchain_experimental.llm_symbolic_math :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: llm_symbolic_math :template: pydantic.rst llm_symbolic_math.base.LLMSymbolicMathChain :mod:`langchain_experimental.llms` =================================== .. automodule:: langchain_experimental.llms :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: llms :template: pydantic.rst llms.anthropic_functions.AnthropicFunctions :template: class.rst llms.anthropic_functions.TagParser :template: pydantic.rst llms.jsonformer_decoder.JsonFormer :template: pydantic.rst llms.llamaapi.ChatLlamaAPI :template: pydantic.rst llms.lmformatenforcer_decoder.LMFormatEnforcer :template: pydantic.rst llms.ollama_functions.OllamaFunctions :template: pydantic.rst llms.rellm_decoder.RELLM Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: llms :template: function.rst llms.jsonformer_decoder.import_jsonformer llms.lmformatenforcer_decoder.import_lmformatenforcer llms.rellm_decoder.import_rellm :mod:`langchain_experimental.open_clip` ======================================== .. automodule:: langchain_experimental.open_clip :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: open_clip :template: pydantic.rst open_clip.open_clip.OpenCLIPEmbeddings :mod:`langchain_experimental.pal_chain` ======================================== .. automodule:: langchain_experimental.pal_chain :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: pal_chain :template: pydantic.rst pal_chain.base.PALChain :template: class.rst pal_chain.base.PALValidation :mod:`langchain_experimental.plan_and_execute` =============================================== .. automodule:: langchain_experimental.plan_and_execute :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: plan_and_execute :template: pydantic.rst plan_and_execute.agent_executor.PlanAndExecute :template: pydantic.rst plan_and_execute.executors.base.BaseExecutor :template: pydantic.rst plan_and_execute.executors.base.ChainExecutor :template: pydantic.rst plan_and_execute.planners.base.BasePlanner :template: pydantic.rst plan_and_execute.planners.base.LLMPlanner :template: pydantic.rst plan_and_execute.planners.chat_planner.PlanningOutputParser :template: pydantic.rst plan_and_execute.schema.BaseStepContainer :template: pydantic.rst plan_and_execute.schema.ListStepContainer :template: pydantic.rst plan_and_execute.schema.Plan :template: pydantic.rst plan_and_execute.schema.PlanOutputParser :template: pydantic.rst plan_and_execute.schema.Step :template: pydantic.rst plan_and_execute.schema.StepResponse Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: plan_and_execute :template: function.rst plan_and_execute.executors.agent_executor.load_agent_executor plan_and_execute.planners.chat_planner.load_chat_planner :mod:`langchain_experimental.prompt_injection_identifier` ========================================================== .. automodule:: langchain_experimental.prompt_injection_identifier :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: prompt_injection_identifier :template: pydantic.rst prompt_injection_identifier.hugging_face_identifier.HuggingFaceInjectionIdentifier Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: prompt_injection_identifier :template: function.rst :mod:`langchain_experimental.prompts` ====================================== .. automodule:: langchain_experimental.prompts :no-members: :no-inherited-members: Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: prompts :template: function.rst prompts.load.load_prompt :mod:`langchain_experimental.retrievers` ========================================= .. automodule:: langchain_experimental.retrievers :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: retrievers :template: pydantic.rst retrievers.vector_sql_database.VectorSQLDatabaseChainRetriever :mod:`langchain_experimental.rl_chain` ======================================= .. automodule:: langchain_experimental.rl_chain :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: rl_chain :template: pydantic.rst rl_chain.base.AutoSelectionScorer :template: class.rst rl_chain.base.Embedder :template: class.rst rl_chain.base.Event :template: class.rst rl_chain.base.Policy :template: pydantic.rst rl_chain.base.RLChain :template: class.rst rl_chain.base.Selected :template: pydantic.rst rl_chain.base.SelectionScorer :template: class.rst rl_chain.base.VwPolicy :template: class.rst rl_chain.metrics.MetricsTrackerAverage :template: class.rst rl_chain.metrics.MetricsTrackerRollingWindow :template: class.rst rl_chain.model_repository.ModelRepository :template: pydantic.rst rl_chain.pick_best_chain.PickBest :template: class.rst rl_chain.pick_best_chain.PickBestEvent :template: class.rst rl_chain.pick_best_chain.PickBestFeatureEmbedder :template: class.rst rl_chain.pick_best_chain.PickBestRandomPolicy :template: class.rst rl_chain.pick_best_chain.PickBestSelected :template: class.rst rl_chain.vw_logger.VwLogger Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: rl_chain :template: function.rst rl_chain.base.BasedOn rl_chain.base.Embed rl_chain.base.EmbedAndKeep rl_chain.base.ToSelectFrom rl_chain.base.embed rl_chain.base.embed_dict_type rl_chain.base.embed_list_type rl_chain.base.embed_string_type rl_chain.base.get_based_on_and_to_select_from rl_chain.base.is_stringtype_instance rl_chain.base.parse_lines rl_chain.base.prepare_inputs_for_autoembed rl_chain.base.stringify_embedding :mod:`langchain_experimental.smart_llm` ======================================== .. automodule:: langchain_experimental.smart_llm :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: smart_llm :template: pydantic.rst smart_llm.base.SmartLLMChain :mod:`langchain_experimental.sql` ================================== .. automodule:: langchain_experimental.sql :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: sql :template: pydantic.rst sql.base.SQLDatabaseChain :template: pydantic.rst sql.base.SQLDatabaseSequentialChain :template: pydantic.rst sql.vector_sql.VectorSQLDatabaseChain :template: pydantic.rst sql.vector_sql.VectorSQLOutputParser :template: pydantic.rst sql.vector_sql.VectorSQLRetrieveAllOutputParser Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: sql :template: function.rst sql.vector_sql.get_result_from_sqldb :mod:`langchain_experimental.tabular_synthetic_data` ===================================================== .. automodule:: langchain_experimental.tabular_synthetic_data :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: tabular_synthetic_data :template: pydantic.rst tabular_synthetic_data.base.SyntheticDataGenerator Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: tabular_synthetic_data :template: function.rst tabular_synthetic_data.openai.create_openai_data_generator :mod:`langchain_experimental.tools` ==================================== .. automodule:: langchain_experimental.tools :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: tools :template: pydantic.rst tools.python.tool.PythonAstREPLTool :template: pydantic.rst tools.python.tool.PythonInputs :template: pydantic.rst tools.python.tool.PythonREPLTool Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: tools :template: function.rst tools.python.tool.sanitize_input :mod:`langchain_experimental.tot` ================================== .. automodule:: langchain_experimental.tot :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: tot :template: pydantic.rst tot.base.ToTChain :template: pydantic.rst tot.checker.ToTChecker :template: class.rst tot.controller.ToTController :template: class.rst tot.memory.ToTDFSMemory :template: pydantic.rst tot.prompts.CheckerOutputParser :template: pydantic.rst tot.prompts.JSONListOutputParser :template: pydantic.rst tot.thought.Thought :template: enum.rst tot.thought.ThoughtValidity :template: pydantic.rst tot.thought_generation.BaseThoughtGenerationStrategy :template: pydantic.rst tot.thought_generation.ProposePromptStrategy :template: pydantic.rst tot.thought_generation.SampleCoTStrategy Functions -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: tot :template: function.rst tot.prompts.get_cot_prompt tot.prompts.get_propose_prompt :mod:`langchain_experimental.utilities` ======================================== .. automodule:: langchain_experimental.utilities :no-members: :no-inherited-members: Classes -------------- .. currentmodule:: langchain_experimental .. autosummary:: :toctree: utilities :template: pydantic.rst utilities.python.PythonREPL