Skip to content

docs: add Modexia AgentPay tool integration#3440

Open
Daniel Okinda (Modaniels) wants to merge 5 commits intolangchain-ai:mainfrom
Modaniels:add-modexia-agentpay
Open

docs: add Modexia AgentPay tool integration#3440
Daniel Okinda (Modaniels) wants to merge 5 commits intolangchain-ai:mainfrom
Modaniels:add-modexia-agentpay

Conversation

@Modaniels
Copy link
Copy Markdown

Overview

Added documentation for the new langchain-modexia integration, bringing Modexia AgentPay capabilities (autonomous crypto payments, cross-chain transfers, and X402 paywall negotiation) to LangChain agents. Added the new tool to the tools index page.

Type of change

Type: New documentation page / Update existing documentation

Related issues/PRs

  • GitHub issue: N/A
  • Feature PR: N/A
  • Linear issue: N/A
  • Slack thread: N/A

Checklist

  • I have read the contributing guidelines, including the language policy
  • 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

(Internal team members only / optional): Create a preview deployment as necessary using the Create Preview Branch workflow

Additional notes

The integration uses the langchain-modexia package. Note that the integration also provides JavaScript/TypeScript support via Model Context Protocol (MCP), which is mentioned in the documentation.

Copilot AI review requested due to automatic review settings April 4, 2026 23:06
@github-actions github-actions Bot added langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects external User is not a member of langchain-ai labels Apr 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 4, 2026

❌ 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/python/integrations/tools/modexia.mdx
Line: 157
Issue: Import from langchain.messages instead of langchain_core.messages
Current:   from langchain_core.messages import HumanMessage
Suggested: from langchain.messages import HumanMessage
--------------------------------------------------------------------------------

 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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds LangChain OSS (Python) documentation for the new langchain-modexia integration (Modexia AgentPay) and surfaces it in the Python tools index so users can discover and use the tool.

Changes:

  • Added a new tool documentation page for Modexia AgentPay, including setup, instantiation, invocation, chaining, and agent usage examples.
  • Added Modexia AgentPay to the Python tools index (Finance table + All tools cards).
  • Updated src/code-samples/package-lock.json (lockfile metadata changes).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/oss/python/integrations/tools/modexia.mdx New integration doc page describing Modexia AgentPay tools and usage patterns.
src/oss/python/integrations/tools/index.mdx Adds Modexia AgentPay to the tools listing for discoverability.
src/code-samples/package-lock.json Lockfile metadata changes included in the PR.
Files not reviewed (1)
  • src/code-samples/package-lock.json: Language not supported

Comment thread src/oss/python/integrations/tools/modexia.mdx Outdated
Comment thread src/oss/python/integrations/tools/modexia.mdx
Comment on lines 53 to +57
"node_modules/@cfworker/json-schema": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/@cfworker/json-schema/-/json-schema-4.1.1.tgz",
"integrity": "sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og==",
"license": "MIT",
"peer": true
"license": "MIT"
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is primarily adding docs, but src/code-samples/package-lock.json is also being modified (e.g., removing "peer": true entries). If this lockfile change isn’t required for the Modexia docs, consider reverting it to keep the PR focused and reduce merge-churn.

Copilot uses AI. Check for mistakes.
Comment thread src/oss/python/integrations/tools/modexia.mdx Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Author

@Modaniels Daniel Okinda (Modaniels) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed the tool feature

@mdrxy Mason Daugherty (mdrxy) added the integration For docs updates for LangChain integrations label Apr 7, 2026
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 integration For docs updates for LangChain integrations 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.

3 participants