Socket
Book a DemoInstallSign in
Socket

graphql-agent-tool

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-agent-tool

A LangChain tool for executing GraphQL queries and mutations

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
ย 
Created
Source

GraphQL Agent Tool

A powerful LangChain tool that enables LLM models and AI agents to autonomously execute GraphQL queries and mutations. This package allows AI agents to intelligently interact with GraphQL APIs, making decisions about when and how to fetch or modify data through GraphQL endpoints without explicit human intervention.

npm version License: MIT TypeScript

Features

  • ๐Ÿค– Autonomous GraphQL operation execution by AI agents
  • ๐Ÿ”„ Intelligent query/mutation selection based on agent's needs
  • ๐Ÿ› ๏ธ Type-safe implementation with TypeScript
  • ๐Ÿ”Œ Seamless integration with LangChain/Langgraph/LLM Models
  • ๐ŸŽฏ Customizable response parsing for agent consumption
  • ๐Ÿ”’ Secure configuration options
  • ๐Ÿ“ Comprehensive documentation
  • ๐Ÿงช Test coverage - 100%

Installation

# Using npm
npm install graphql-agent-tool

# Using yarn
yarn add graphql-agent-tool

# Using pnpm
pnpm add graphql-agent-tool

Prerequisites

  • Node.js >= 20.0.0
  • TypeScript >= 5.0.4 (optional but recommended)

Documentation

For detailed documentation and examples, please refer to our guides:

Development

Setup

  • Clone the repository
  • Install dependencies:
    pnpm install
    

Available Scripts

  • pnpm build - Build the package
  • pnpm test - Run tests
  • pnpm test:watch - Run tests in watch mode
  • pnpm test:coverage - Run tests with coverage
  • pnpm lint - Run linter
  • pnpm format - Format code
  • pnpm typecheck - Type check the codebase

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Sohab Sk - GitHub

Acknowledgments

  • LangChain for the amazing framework
  • Axios for the HTTP client
  • Zod for runtime type checking

Keywords

graphql

FAQs

Package last updated on 12 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.