Skip to content

Conversation

@mcavdar
Copy link
Contributor

@mcavdar mcavdar commented Oct 30, 2025

Overview

The current config produces an issue:

Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
  File "/home/mc/.venv-langchain-v1/lib/python3.10/site-packages/langchain/agents/middleware/human_in_the_loop.py", line 193, in __init__
    elif tool_config.get("allowed_decisions"):
AttributeError: 'str' object has no attribute 'get'

The old example conflicts with the configuration options described in LangChain’s documentation

The description field is part of InterruptOnConfig, so the dictionary value should be an InterruptOnConfig object.

Type of change

Type: [Update existing documentation /bug/Remove outdated content]

Related issues/PRs

  • GitHub issue:
  • Feature PR:
  • Linear issue:
  • Slack thread:

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed
  • I have gotten approval from the relevant reviewers
  • (Internal team members only / optional) I have created a preview deployment using the Create Preview Branch workflow

Additional notes

@mcavdar mcavdar requested a review from lnhsingh as a code owner October 30, 2025 20:17
@github-actions github-actions bot added langchain For docs changes to LangChain python For content related to the Python version of LangChain projects oss labels Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant