Skip to main content

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 SendEmailTool (gl_connectors_tools.shared.email)
uv add gl-connectors-tools[email]

# 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.13-cp313-cp313-win_amd64.whl (636.4 kB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 676c6e93934402a66a9e570739a02891e80c74fa55f224c0e8b5099d4003d93c
MD5 8c088d988dd9b7f2f65fb137715a8f13
BLAKE2b-256 6e0c12afd77750668d1f7c77d224f33b8dccba02312d69d569e7f88841c818aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.13-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.13-cp313-cp313-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 90b369bc2f00d1dd65c932de59f5e2c57de93bdf777764d6510b88afecb5109e
MD5 402d4e99a61b860c5ca221a8b032c0be
BLAKE2b-256 238fd5abb95fcf3c9765176eb9b5ddaeee5bd4c7d14bedecb2222a38d0a57426

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3300bcc2cf560cab5720df8a7fb309c7d96fc197636a4e59b0dba0dd1aea0e71
MD5 5707ff512d829f4cb4a352fbdce516c4
BLAKE2b-256 61f9d944920e573b3ed82789a588049ebf087660d1883d632487aded1a57112f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.13-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.13-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 abe75a015d42e898e6ea1a318b2e4467e90e99ea347c5c022c46351a81abf153
MD5 fe806d58538b59b2274ca4e4f84241d3
BLAKE2b-256 29f10a1db288bf65b9d5036c4e4147495ad5631dc8b4949475235d191280fbdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.13-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.13-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2a06194b19a09749cb60495f6fa256a3d24f7a705b6a65bbc4c2990e4a2bfa06
MD5 018bcaaf891c5a5de01c0a1e3e0030a3
BLAKE2b-256 fa29e715b5027c0c112f29e85728eae057f8694d625631da1c39d7d85db6ef1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ccd90dd160a48c180f89c27c4148877cc78b0485e8f420655486af2b16d372a5
MD5 0db7caefdee9c47dbcba33beb1491c4d
BLAKE2b-256 5e6e00c08e87a67809dcb5b31d104a29657143799d2264bbbc6eb16f0a50f47c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.13-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.13-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1c2b5be3f786ef16a4f62cd100b321148a5a1d2667962ab8de7ff7fc8f542218
MD5 92b5b91f42663ff7b11db4c7351e1de9
BLAKE2b-256 0977a51f1bf2bf37d93c02ab8bc5cbf1fe262c463f8ecbde81da7aad056274ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.13-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 488b746efd52d1b7afa5cca71720a9198a25b37f7907b9006627715101826d06
MD5 af001cdc76d9e7fc5d64816593ba71a5
BLAKE2b-256 3027e318639ef66ae77be73a2b38c981b0a63aa7610b19993fbd8032c38a3a6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.13-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