Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

GL Connectors Tool SDK

Framework-agnostic tool SDK for building tools that work with GLLM Core, LangChain, and Google ADK.

Installation

(Alternative to uv add would be pip install)

# Core SDK only
uv add gl-connectors-tools

# With GLLM Core support
uv add gl-connectors-tools[gllm]

# With LangChain support
uv add gl-connectors-tools[langchain]

# With Google ADK Support
uv add gl-connectors-tools[adk]

# With all frameworks
uv add gl-connectors-tools[all]

Quick Start

Creating a Tool

from pydantic import BaseModel, Field
from gl_connectors_tools.tools import BaseTool


class SearchInput(BaseModel):
    query: str = Field(description="Search query")
    max_results: int = Field(default=10, description="Maximum results to return")


class SearchTool(BaseTool):
    name = "search"
    description = "Searches for information"
    input_schema = SearchInput

    def run(self, query: str, max_results: int = 10) -> str:
        # Your implementation here
        return f"Found {max_results} results for: {query}"

Using with Different Frameworks

from gl_connectors_tools.adapters import (
    to_gllm_tool,      # GLLM Core
    to_langchain_tool,  # LangChain
    to_adk_function,    # Google ADK
)

tool = SearchTool()

# Convert to GLLM Core Tool
gllm_tool = to_gllm_tool(tool)

# Convert to LangChain StructuredTool
lc_tool = to_langchain_tool(tool)

# Convert to ADK FunctionDeclaration
func_decl, callable_fn = to_adk_function(tool)

Migrating from LangChain (Zero-Change!)

Just change the import. The SDK accepts LangChain naming conventions out of the box:

- from langchain_core.tools import BaseTool
+ from gl_connectors_tools.tools import BaseTool

  class MyTool(BaseTool):
      name = "my_tool"
      description = "..."
      args_schema = MyInput      # ✅ Works as-is!

      def _run(self, **kwargs):  # ✅ Works as-is!
          # implementation unchanged

The SDK supports both naming conventions:

LangChain Style SDK Style
args_schema input_schema
_run() run()
_arun() arun()

Alternative: Wrapper for Existing Instances

If you have existing LangChain tool instances you can't modify:

from gl_connectors_tools.adapters.langchain import LangChainToolWrapper

# Existing LangChain tool instance
from my_app.tools import MyLangChainTool

# Wrap it
sdk_tool = LangChainToolWrapper(MyLangChainTool())

# Now use it with any adapter
gllm_tool = to_gllm_tool(sdk_tool)

Predefined Tools

from gl_connectors_tools.predefined import TimeTool

tool = TimeTool()
result = tool.run(timezone="Asia/Jakarta")

Architecture

┌─────────────────────────────────────────────────┐
│               Your SDK Tools                     │
│         (inherit from BaseTool)                  │
└─────────────────────────────────────────────────┘
                      │
        ┌─────────────┼─────────────┐
        ▼             ▼             ▼
   ┌─────────┐  ┌─────────┐  ┌─────────┐
   │  GLLM   │  │LangChain│  │   ADK   │
   │ Adapter │  │ Adapter │  │ Adapter │
   └─────────┘  └─────────┘  └─────────┘

The SDK owns the tool interface. Frameworks become output adapters, not the source of truth.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gl_connectors_tools_binary-0.0.13b1-cp313-cp313-win_amd64.whl (542.9 kB view details)

Uploaded CPython 3.13Windows x86-64

gl_connectors_tools_binary-0.0.13b1-cp313-cp313-manylinux_2_31_x86_64.whl (860.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.13b1-cp313-cp313-macosx_13_0_arm64.whl (592.8 kB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gl_connectors_tools_binary-0.0.13b1-cp312-cp312-win_amd64.whl (545.8 kB view details)

Uploaded CPython 3.12Windows x86-64

gl_connectors_tools_binary-0.0.13b1-cp312-cp312-manylinux_2_31_x86_64.whl (860.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.13b1-cp312-cp312-macosx_13_0_arm64.whl (590.7 kB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gl_connectors_tools_binary-0.0.13b1-cp311-cp311-manylinux_2_31_x86_64.whl (786.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.13b1-cp311-cp311-macosx_13_0_arm64.whl (585.1 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gl_connectors_tools_binary-0.0.13b1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13b1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 fa6e68a1c04b7e750b1c289cdf113d3f16a0092f43ebacb08062848d705b4b4f
MD5 7cd2c6bf9abffff2cdea2e8027a79877
BLAKE2b-256 58e9e8bef6299da8c8d3c0d9276de4a2692627749228a9dc0065a6aaedf1d3f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.13b1-cp313-cp313-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-connectors-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gl_connectors_tools_binary-0.0.13b1-cp313-cp313-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13b1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3104b9199ee43787c617f44cf341b4a71c5782ee6f4eba95ca5f460d3b0cfc68
MD5 0a7d75ebb419c781fe45f54531789934
BLAKE2b-256 91d1a8ed2fd42ddd4476f6ce5fb3015d291c1deab673e79613d0dff5497a82eb

See more details on using hashes here.

File details

Details for the file gl_connectors_tools_binary-0.0.13b1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13b1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c2ed98f536429fe6f59ea7c531398e5cf6413b3fdfbb6bda4e1f07e8df1c36dc
MD5 b59c2e34d2a9ffba89822818cc87f338
BLAKE2b-256 489ad901fef00d98d1aa83bffa537291d96485f31448d12a79b43c19ea1ec9fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.13b1-cp313-cp313-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-connectors-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gl_connectors_tools_binary-0.0.13b1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13b1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dc32913f68c4d47fae1ed1a18e9c3b32cdc9c19080e6983717f388199b471267
MD5 4deea988ebef8ee8fa02deb896238e6c
BLAKE2b-256 9d9c0ead184f5c6849b1727bc0380e9692e6faaaaa31d2c9ac150f1f64faed64

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.13b1-cp312-cp312-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-connectors-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gl_connectors_tools_binary-0.0.13b1-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13b1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3aca441fc04e5640db3fe09901d4f3baa44edbeb666086437397c408f4901e83
MD5 cf9b4e2c31d3c4edf97e0b11f6044f75
BLAKE2b-256 6b6d80824a3634cb6cf720e3aa1d7992ddb55aa3982a44b0590f7b5f6d8cf7a3

See more details on using hashes here.

File details

Details for the file gl_connectors_tools_binary-0.0.13b1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13b1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0fb10b9a9ea3e14517460dfbdeddf289f0c636c1d4f7d01dc7698a1beb9fe87d
MD5 329458b603a0ae81b55deffe1aace127
BLAKE2b-256 46e90355246b02bf06181335bdc4e6588c104877b18469fc8d36b647c5443e52

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.13b1-cp312-cp312-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-connectors-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gl_connectors_tools_binary-0.0.13b1-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13b1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 15ab3748145ee1b3fb0c778c0b7d6305be4e70b910fcf083ad1f758b2fe52629
MD5 d210eb07a1992ff750c9d3c551763837
BLAKE2b-256 9e52f408db370e9a3047cb14cec6eebf0843d0fc46daceee9dc18f3862eb14fc

See more details on using hashes here.

File details

Details for the file gl_connectors_tools_binary-0.0.13b1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13b1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ee74fb5d1dec043399109dd7d1f1013c22648f8475e46449a57c457c05d84cba
MD5 80e1d2f9ff746fcbedd452bdefe41606
BLAKE2b-256 402906d0782d8198914a8d38c0aabb12b86a3705a9b4fadd851ce4996c8fb4c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.13b1-cp311-cp311-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-connectors-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page