Skip to content

docs(langgraph): add Pramagent tool policy guide#4806

Open
sriram rampelli (sriram7737) wants to merge 2 commits into
langchain-ai:mainfrom
sriram7737:sriram7737/docs/pramagent-langgraph-tool-policy
Open

docs(langgraph): add Pramagent tool policy guide#4806
sriram rampelli (sriram7737) wants to merge 2 commits into
langchain-ai:mainfrom
sriram7737:sriram7737/docs/pramagent-langgraph-tool-policy

Conversation

@sriram7737

@sriram7737 sriram rampelli (sriram7737) commented Jul 9, 2026

Copy link
Copy Markdown

Adds a LangGraph production-pattern guide for placing Pramagent at the tool-execution boundary.

Why:

  • shows how to validate model-proposed tool calls before side effects execute
  • connects ToolGuard decisions to LangGraph interrupts and idempotency guidance
  • keeps LangGraph as the orchestration layer and Pramagent as an optional external policy gate

Validation:

  • git diff --check

@github-actions github-actions Bot added langgraph For docs changes to LangGraph oss external User is not a member of langchain-ai labels Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

❌ Import check failed

This PR contains imports from langchain_core that should be imported from langchain instead.

Detailed issues
Analyzing diff for import issues...
 Found 1 import issues:

File: src/oss/langgraph/pramagent-tool-policy.mdx
Line: 74
Issue: Import from langchain.tools instead of langchain_core.tools
Current:   from langchain_core.tools import tool
Suggested: from langchain.tools import tool
--------------------------------------------------------------------------------

 Found 1 import issues that need to be fixed.

Why this is a problem

The langchain package re-exports many modules and classes from langchain_core. When possible, imports should use langchain instead of langchain_core for:

  • Better user experience (single import source)
  • Consistency across documentation
  • Reduced cognitive load for users

How to fix

Replace the imports as suggested above. For example:

  • from langchain_core.messages import HumanMessage
  • from langchain.messages import HumanMessage

🤖 Automated check

This check is based on the latest analysis of langchain re-exports from langchain_core.

@sriram7737 sriram rampelli (sriram7737) marked this pull request as ready for review July 9, 2026 13:45
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for opening a docs PR, sriram rampelli (@sriram7737)! When it's ready for review, please add the relevant reviewers:

  • @npentrel or @lnhsingh (LangGraph)

@sriram7737

Copy link
Copy Markdown
Author

This is ready for review. Tagging Lauren Hirata Singh (@lnhsingh) for LangGraph review, per the contributor guidance above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external User is not a member of langchain-ai langgraph For docs changes to LangGraph oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant